users@jersey.java.net

Re: [Jersey] Resource class with JAXB and _at_XmlType(propOrder=...)

From: Morten <mortench2004_at_yahoo.dk>
Date: Sat, 8 Aug 2009 17:27:56 +0000 (GMT)

--- Den lør 8/8/09 skrev Paul Sandoz <Paul.Sandoz@Sun.COM>: > To configure validation you will need to use a > ContextResolver [1] using either JAXBContext or a > Unmarshaller, that returns an Unmarshaller for the types you > want to validate with validation enabled. As a JAXBContext is expensive and needs configuration that should not duplicate Jersey's configuration of JAXB enabled objects, how do a resolver of Unmarshaller reuse the existing JAXBContext instance used by Jersey? Besides this use case, I can see a lot of benefits of being able to access and manipulate the concrete JAXBContext used by Jersey. /Morten Trænger du til at se det store billede? Kelkoo giver dig gode tilbud på LCD TV! Se her http://dk.yahoo.com/r/pat/lcd