I\'m building a RESTful API and I have a use case where I need to be able to render two different views of my data. One that we can use internally and one that we will expo
Note: I'm the EclipseLink JAXB (MOXy) lead and a member of the JAXB (JSR-222) expert group.
EclipseLink JAXB (MOXy) offers an external mapping file. This mapping file can augment or completely replace the metadata supplied via annotations. Below is an example where the same object model is mapped to two different weather services (Google and Yahoo)
MOXy also supports both XML and JSON binding:
MOXy also integrates easily with JAX-RS implementations: