Thanks a lot Andy, that was useful. The question is still another one: in JAVA EE 7 tutorial, in the section that i indicated, it says that you can use same JAX-B classes and method signature as if the call was for application/xml and in fact generate (or read) application/json.
I didn't try that with Jersey i tried with CXF and it didn't generate without adding the JSON provider. And i think i just come to understand: - yes i have to manually add the provider - but IT DOES generate JSON using the same method signature as for xml, that is the one with the JAX-B classes It's my fault, i didn't try after ading the JSON provider to see that - simply by adding @Produces application/json and - making a GET with accept: application/json IT WILL work!! Thanks again. OK, i got it. Thanks a lot again. -- Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html
