camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blommish <johanblomgren1...@gmail.com>
Subject Re: Handling splitting and error handling
Date Wed, 15 Apr 2015 08:53:12 GMT
So well, this can be handled by using transacted() after picking up the
message from direct:inbound, making it look like:

from("direct:inbound")
  .transacted() 
  .multicast().parallelProcessing().to("direct:a", "direct:b");

But there's another issue then. 

If I have
onException(Exception.class).handled(true).useOriginalMessage().to("jms:errorQueue")

It WILL not rollback the messages from the endpoints, for example if it
fails to validate for message a, it will still send the message b to q3 and
q4. 

But when having handled(false) it will not. But then it *will also rollback
the message to the inbound queue* AND post it to the errorQueue? 



--
View this message in context: http://camel.465427.n5.nabble.com/Handling-splitting-and-error-handling-tp5765748p5765819.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message