camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neo <ratheet...@gmail.com>
Subject Camel 2.9 - <convertbodyto > fails to converts a XML JMS Body to Java Bean
Date Thu, 19 Apr 2012 03:00:45 GMT
Hi,


The following is my Route in general tems:
*
JMS Topic -> Async Camel JMS Subscriber ->SEDA -> CONVERTBODYTO -> SEDA
->ENRICH ->SEDA->RESTFUL SERVICE CALLOUT*

       In the current application that I am working on , I use the
convertbodyto tag to convert the incoming JMS Body of XML type to a Java
Object. 

The convertbodyto tag works and it converts the JMS Body to the given type.

In one case , I have sent a wrong XML in the JMS Body and the convertbodyto
has errored out trying to convert the message to Java Bean.

It is after this that the problem started.

The next message that I sent was the correct XML message in the JMS body ,
but then Camel threw the same JAXB InvalidPayload exception for this correct
XML too.

The logic just broke for the rest of the messages as it threw the same
exception for every message read from the JMS Topic.

Did anyone see such kind of behaviour ? Or am I supposed to clear some
message header that I am not clearing?

Can anyone please help ?

Cheers,
Neo

--
View this message in context: http://camel.465427.n5.nabble.com/Camel-2-9-convertbodyto-fails-to-converts-a-XML-JMS-Body-to-Java-Bean-tp5650739p5650739.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message