I have two routes, the parent route uses jms with the inout EIP to call the
below route, and uses the transferException parameter so that exceptions get
returned to the parent route. The problem is that in my child route I
unmarshal using jaxb before calling a bean, when an exceptions occurs in
that bean and the exception returns to the parent route the body is always
null. I've tried using the useOriginalMessage in the onException element,
but the body is still null when returned to the parent. If more information
is required, please let me know.

Thank you,
Tony

                <onException useOriginalMessage="true">
                        <exception>java.lang.Exception</exception>
                        <redeliveryPolicy maximumRedeliveries="1"
                                backOffMultiplier="2" 
useExponentialBackOff="true" />
                </onException>
                
                <route id="ImagingRoute">
                        <from uri="{{endpoint.ImagingQueue}}" />
                        <unmarshal ref="jaxb" />
                        <to uri="{{endpoint.ImagingService}}" />
                        <marshal ref="jaxb" />
                </route>



--
View this message in context: 
http://camel.465427.n5.nabble.com/Null-Body-tp5731568.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to