Hi Have you tried enabling stream caching? http://camel.apache.org/stream-caching.html
On Tue, May 29, 2012 at 4:19 PM, Jens <[email protected]> wrote: > Hi list, > > I'm trying to route a message to a SOAP service via a CXF endpoint like > this: > > from("cxf:bean:..."). > doTry(). > to("cxf:bean:primary"). > > doCatch(IOException.class). > to("cxf:bean:secondary"). > > end(); > > So basically, send the message to the first service, and if that doesn't > work, send it to the second instead. Unfortunately, when the catch block is > triggered the message body is null so routing to the secondary endpoint > fails, too. Is there a way to get the original message body back, or do I > need to save/restore it myself somehow? > > Interestingly, using onException() does not seem to show the same problem. > > Thanks, > Jens > > -- > View this message in context: > http://camel.465427.n5.nabble.com/doTry-doCatch-with-original-message-tp5713695.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
