title: What is JAXB and JAXRS ? How are they related?
body: <p>Sorry for this blunt question . But many use these 2 terms day in and day out yet I don't know .I did some study on this and knew what it is separately . But don't understand how it is related . I will share what I understood about these two first .</p>
  
  <blockquote>
    <p>JAXB is XML-to-Java binding technology enabling transformations
    between schema and Java objects and between XML instance documents 
    and Java object instances. Internally JAXB does all this conversions
    between xml and java .  This is a parser of xml and then it knows what
    component in xml corresponds to what in java and it breaks .
    Conversion of this answer  from JAXB is done by tools like xjc ( or
    codgen plugin) . Mapping may be like </p>
    
    <p>xsd:string            java.lang.String</p>
    
    <p>xsd:integer           java.math.BigInteger</p>
    
    <p>JaxRs is different . This is set of specifications for handling
    requests . Meaning that it says "GET("/foo") " means handle a  get
    call with url /foo . It only states that . How it is done ? Yes , that
    is called implementation of this spec .  There are number of
    implementations like restlet , resteasy , jersey , apache cxf etc .
    This is analogus to logic and way you implement in maths . the
    algorithm idea is bucket search .This can be implemented in any way .
    In java terms JaxRs is interface and these 4 restlet , resteasy ,
    jersey , apache cxf are implementations of the interface .</p>
  </blockquote>
  
  <p>Now please say if my understanding is correct . Then tell how they are related . Please help . If possible a pictorial explanation will be more helpful.</p>