|
From: Lars R. C. <lr...@am...> - 2010-02-25 16:51:03
|
We have a fairly large JBoss-based system in which we use RESTeasy for a number of our web services. Jackson just came onto our radar as a much better alternative for the various JAXB JSON implementations, and I would like to use it. However, two of the three descriptions of how to enable Jackson with RESTeasy don't apply in our system: We don't use Maven, so we can't just add something to our Maven config, and we don't have an explicit application class that extends javax.ws.rs.core.Application since we just use @Path annotations and resteasy.jndi.resources specs to designate our web services. I have tried the third approach, mentioned in <URL:http://wiki.fasterxml.com/JacksonFAQ?highlight=(\bCategoryJackson\b)>, of making files in META-INF/services/javax.ws.rs.ext.MessageBodyReader and -Writer, but that has no visible effect, I still end up with Jettison-generated JSON. I cannot remove the superfluous JAXB/Jettison jar files, as JBoss depends on them. I have successfully used Jackson in unit tests that don't touch upon RESTeasy, and really like it, so how should I add it when we don't use Maven or Application? Thanks in advance, -Lars |