jaxb « MVC « Spring Q&A





1. Using Jaxb2Marshaller with multiple classes having same @XmlRootElement name    stackoverflow.com

I am working on a web service using spring-mvc and Jaxb2Marshaller. I have two classes, both annotated with the same @XmlRootElement name

@XmlRootElement(name="request")
class Foo extends AstractRequest {

}

@XmlRootElement(name="request")
class Bar extends AbstractRequest ...