Hi, You basically can control the attributes of this class: http://grepcode.com/file/repo1.maven.org/maven2/org.apache.cxf/cxf-rt-frontend-jaxrs/2.6.6/org/apache/cxf/jaxrs/provider/AbstractJAXBProvider.java#AbstractJAXBProvider
that's said writing a custom @Provider should be easy and you can do all you want in it *Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/5/23 ZhongGuan <[email protected]> > Hi > When I use JAX-RS, the JAX-RS can do some marshall unmarshall thing by > using > JAXB autoMaticly. > and I know I can use ContextResolver<JAXBContext> to control the > JAXBContext. > but if I'd like to add some properties or Adapters to marshaller, I need to > control the > marshaller and unmarshaller. > > So my question is How can I handle the marshaller when using JAX-RS. > It seems that I can use the ContextResolver<Marshaller> in Jersey (I did > not > test it), > but in Tomee it does not work. > > any suggestions? > thanks > > > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/controlling-Marshaller-in-JAX-RS-tp4663177.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >
