Hi Ivan You have to add an adapter, please see
http://blogs.sun.com/CoreJavaTechTips/entry/exchanging_data_with_xml_and for an example. JAXBElementProvider won't check package-level adapters, at the moment you'll probably need to add it to a method returning a Date. I'll see what has be improved for package-level adapters be checked too Cheers, Sergey On Mon, Apr 11, 2011 at 9:25 AM, Ivan Vitoria Sanchez <[email protected] > wrote: > Hello, > > > > Is there any way to configure (via Spring) the JAXB provider in order to > use > "Date" instead of "XmlGregorianCalendarImpl" in the JAX-RS server? I'm > having XmlGregorianCalendarImpl instances when using a class which extend > from a generic type class and specifying Date as the type in my subclass. > > > > Many thanks, > > > > Ivan > > > >
