title: JAXB : How to manipuulate the Data during Unmarshalling process
body: <p><strong>I am using jaxb for the Unmarshalling Process</strong> </p>
  
  <p><strong>This is my Request</strong> </p>
  
  <pre><code>&lt;kiran acct = "1234567" /&gt;
  
  package com;
  @XmlRootElement(name = "kiran")
  @XmlAccessorType(XmlAccessType.FIELD)
  public class CustAcct {
  
      @XmlAttribute
      private String acct;
  
      public CustAcct() {
  
          super();
      }
  
      public String getAcct() {
          System.out.println("The New Getter Method of Account is called");
          return acct;
      }
  
      public void setAcct(String s) {
          System.out.println("The New Setter Method of Account  is called");
          acct = s;
      }
  
  }
  </code></pre>
  
  <p><strong>This is the way Jersey (Restful Framework ) automatically binds the data with JAXB</strong></p>
  
  <pre><code>public class HelloService {
  
      @POST
      @Produces("application/text")
      public String sayPlainTextHello(CustAcct custdata) {
  
          System.out.println("The New Account is " + custdata.getAcct());
          return "Hi";
      }
  
  }
  </code></pre>
  
  <p>Here my question is that , <strong>why the Setter Method setAcct is not getting called in this case</strong> ??</p>
  
  <p>I mean why the Line "The New Setter Method of Account  is called" isn't being printed , and where as the Line inside the getMethod is geting called (The New Getter Method of Account is called)</p>
  
  <p><strong>Basically I want to Manupulate  Data to an Attribute which is sent in the Request XML .</strong></p>
  
  <p>is there any call back method by which i can control the way Data is being Set ??</p>
  
  <p>Thanks in advance .</p>