I was able to achieve unmarshalling using a different approach. I found the
suggestion here:

http://stackoverflow.com/questions/2631662/using-apache-camel-how-do-i-unmarshal-my-deserialized-object-that-comes-in-throug

My Spring config looks like this:

<route>

        <from uri="amq2:queue:eat" />
        <to uri="xslt:file:src/com/mycompany/connector/resources/test.xslt" />
        <convertBodyTo type="com.mycompany.connector.bean.TestBean" />          
        
        <bean ref="consumer" />
        <to uri="amq2:queue:eaten" />

</route>

Currently this method is working. My TestBean class is annotated with JAXB
(XmlRootElement). The consumer bean receives a POJO, not an XML message or
String. 

However, if anyone has an example of using an explicit Jaxb DataFormat from
a Spring configuration, that would be great.
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/JAXB-Unmarshalling-DataFormat-error-suggestions-tp2814620p2817914.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to