users@jersey.java.net

[Jersey] Re: Jersey with Jackson for JSON

From: charlesk <charlesk40_at_yahoo.com>
Date: Mon, 20 Jun 2011 15:44:30 -0700 (PDT)

Hi, Jakub
I'm re-posting this to clarify things for my original question.

I'm running jetty(tomcat) and along with jersey libs, jackson-jaxrs.jar is
also included in the .war file because its transitive dependency of
jersey-json.lib.

In jackson-jaxrs.jar, there is a JacksonJaxbJsonProvider (or the
JacksonJsonProvider) provider which I believe is being picked up when war is
deployed and Jersey seems to pick this up. If I exclude the
jackson-jaxrs.jar from my war, it uses the Jaxb json libs.

However, I would like to register both, Jackson and Jaxb json lib at the
same time but want to have an ability to choose which one to use based on
the configuration.

How can I configure Jersey to use either JacksonJaxbJsonProvider or the old
Jaxb json libs?
Thanks.


--
View this message in context: http://jersey.576304.n2.nabble.com/Jersey-with-Jackson-for-JSON-tp6480924p6497761.html
Sent from the Jersey mailing list archive at Nabble.com.