I am trying to use Jaxb2Marshaller to marshal a set of java classes using spring. I know this can be done using the following code
What I would like to do is instead of specifying a list of classes, I would like to specify just the package name containing all the classes ( in the above case com.example).
<bean id="jaxbMarshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
Does anyone know of a way to do this, or any other way which does not require me to list all the classes. any help would be appreciated !