Hi i am getting below error when i run my bundle:

13:01:22,974 | WARN  | teTimeoutChecker | JmsBinding                       |
154 - org.apache.camel.camel-jms - 2.10.0.fuse-71-047 | Cannot determine
specific JmsMessage type to use from body class. Will use generic
JmsMessage. Body class: com.xx.xx.MyJAXBType. If you want to send a POJO
then your class might need to implement java.io.Serializable, or you can
force a specific type by setting the jmsMessageType option on the JMS
endpoint.


Context: i am sending some xml files to the camel route which uses the
aggregate and processor to process the files.

i have a my JaxB classes to map the xml elements and process the exchange.

My route class Code:

JaxbDataFormat dataFormat = new JaxbDataFormat(true); 
dataFormat.setContextPath("xx.xx.xx"); // my jaxb package

                
errorHandler(deadLetterChannel("activemq:erroredMessages"));
                 from("activemq:incomingFiles")
                .unmarshal(dataFormat)
                .aggregate(header(Exchange.FILE_NAME_ONLY), new MyAggregator())
                .completionTimeout(getAggregationTimeout())
                .process(new MyProcessor())
                .to("activemq:processedFiles")
                .end();



MyProcessor code:

JAXBElement<xx.xx.xx.MyJaxBType> objJAXB =
(JAXBElement<MyJaxBType>)exchange.getIn().getBody();

MyJaxBType valueJAXB = objJAXB.getValue();  // i am not getting the exchage
value though exchange is not null.

I appreciate if someone can evaluate my code and throw pointer to correct
it?

                                




--
View this message in context: 
http://servicemix.396122.n5.nabble.com/Unable-to-instantiate-the-aggregation-route-Error-in-Camel-2-10-4-tp5717416p5717437.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to