Thank you Sergey, I'll try that.

I think part of my problem is that I am confused about the Spring bean
configuration of the CXF server.   I don't really understand what
<jaxrs:server> is doing inside.  Is it setting up an instance of
JAXRSServerFactoryBean?

Also what is supposed to go into <jaxrs:providers>?  Anything with an
"@Provider" annotation or anything that implements
ContextResolver<JAXBContext> ?

I ask because, looking into it, I am now surprised my Jackson JSON provider
ever worked.  It does NOT implement ContextResolver<JAXBContext>.  Here is
the class definition:

-----------------------------------------------------------------
@Provider
@Consumes({MediaType.APPLICATION_JSON, "text/json"})
@Produces({MediaType.APPLICATION_JSON, "text/json"})
public class JacksonJsonProvider
    implements
        MessageBodyReader,
        MessageBodyWriter,
        Versioned // since 1.6

.....
-----------------------------------------------------------------

How did this work?  What is the requirements for being placed into the
<jaxrs:providers> configuration stanza?

Thanks,
Dave


--
View this message in context: 
http://cxf.547215.n5.nabble.com/How-to-configure-CXF-to-use-different-JAXBContextFactory-tp5281773p5318636.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to