Hi Ramesh,
please see the example at [1]. Look at the src/main/java/META-INF/services
directory, where the files registering the Jackson providers are located.
HTH,
~Jakub
[1]
http://download.java.net/maven/2/com/sun/jersey/samples/jacksonjsonprovider/1.2/jacksonjsonprovider-1.2-project.zip
rameshb wrote:
> I am in a similar situation and am using Jersey 1.2. (jaxb 2.1.12). I have to
> support both XML and JSON formats in my REST service. XML seems to work fine
> when left alone (based on my xsd). If I remove elementFormDefault in xsd,
> the xml response starts adding ns2 infront of tags, but JSON works fine. If
> I add elementFormDefault in xsd, XML works fine, but JSON does not
> unmarshall.
>
> I was not sure how to register the JSONJacksonProvider. Could you please
> point me to that?
>
> Thanks,
> Ramesh
>