| Use Spring's MarshallingHttpMessageConverter and MOXy without @XmlRootElement [message #899336] |
Tue, 31 July 2012 09:43  |
Ben Grommes Messages: 1 Registered: July 2012 |
Junior Member |
|
|
I trying to exclusively use the MOXy mapping file instead of annotations to define my object to xml mapping. The only roadblock I have encountered is the need for the @XmlRootElement annotation due to the use of Spring's MarshallingHttpMessageConverter and Jaxb2Marshaller which require an @XmlRootElement annotation (Specifically the Jaxb2Marshaller.supportsInternal method).
Any suggestions for dealing with this (I don't want to use JAXBElements)? Would you agree that Spring should change Jaxb2Marshaller to allow usage in a mode where @XmlRootElement is not present.
|
|
|
|
Powered by
FUDForum. Page generated in 0.01471 seconds