Yes. I have an annotated class in that package that I want to "unmarshall
into".

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="test")
public class TestBean {
...

Now, it is not an ObjectFactory, but it is annotated. Am I using the Jaxb
bean correctly?

<route>
        <from uri="amq2:queue:take" />

        <unmarshal>
                <jaxb id="myJaxb" prettyPrint="true"
contextPath="com.mycompany.connector.jms" />
        </unmarshal>

        <bean ref="consumer" />
        <to uri="amq2:queue:taken" />
</route>
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/JAXB-Unmarshalling-DataFormat-error-suggestions-tp2814620p2818518.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to