Hi Sounds like this FAQ http://camel.apache.org/why-is-my-message-body-empty.html
On Thu, Apr 25, 2013 at 11:49 PM, TonyK <akindsc...@sfgmembers.com> wrote: > 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. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen