camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marcin <mtros...@gmail.com>
Subject onCompletition block
Date Thu, 24 Nov 2011 13:19:59 GMT
Hi, 

Can I have multiple onCompletition block in single camel's route?

My route is following:

from("direct:test")
  .onCompletition().onCompleteOnly()
    .to("direct"success")
  .end()
  .onCompletition().onFailureOnly()
    .to("direct:failure")
  .end()
  .process(new MyProcessor())
.end();

But, in this case any onCompletition block is executing regardless of
processor throws exception. I use Camel 2.6.0.

Cheers,
Marcin


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

Mime
View raw message