Marshal/Un marshal List objects in Jersey JAX-RS using JAXB
问题 Good Morning. Today morning when I am going through Jersey Entity providers MessageBodyReader s and MessageBodyWriter s I came across the following problem. I want to write a resource method and client that returns a list of custom objects and media type is application/xml . So I would like to use JAXB (I am new to JAXB). I was able to achieve this by writing my own extended MessageBodyReader and MessageBodyWriter . But I am afraid of the way I am following. Just look at the way I implemented