users@jersey.java.net

Pointers on using JAXB with Jersey

From: Kevin Duffey <andjarnic_at_yahoo.com>
Date: Wed, 20 Aug 2008 17:30:41 -0700 (PDT)

Hey all,

Is there some good examples or links that explain a bit more how to make use of JAXB/schema generated objects to handle XML requests and return XML responses. I have a project generating my model classes using ant/Jaxb, and from my understanding there is a way to use resources and providers to automatically handle xml sent to resources so that I myself do not have to do any sort of parsing, I can instead access the generated object tree to deal with the request xml sent in, and as well, I can manipulate an instance of the model object tree and send it back as a xml response. It seems like a great way to handle xml anyway.

Is there a JSON equivalent for handling json using objects and sending json back as a response.. preferably using the same JAXB generated object tree?

Thank you.