You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by thorbcn <se...@gmail.com> on 2013/06/20 18:06:19 UTC

seda endpoint and UoW

Hi,

I have an strange behavior with seda endpoint and the Unit Of Work
demarcation:

Route 1:  Endpoint A -> (processor chain) -> Endpoint B (seda)

In this route is configured a onCompletion callback

Route 2: Endpoint B -> (processor chain) -> Endpoint C


In this scenario onCompletion executes when Route 2 ends. Endpoint is
supposed to be an asynchronous message exchange so, should not be different
exchange  from route 1 to route 2?





--
View this message in context: http://camel.465427.n5.nabble.com/seda-endpoint-and-UoW-tp5734453.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: seda endpoint and UoW

Posted by thorbcn <se...@gmail.com>.
Sorry, I read in other discussion thread that this is the normal behavior
since Exchange is the same across routes. However my doubt now if I can
achive the behaivor I was expeting if I do this trick:

Route 1:

<camel:route>		 
   <camel:from uri="direct:start" />
   <camel:transacted />
.
.
.
   <camel:onCompletion>
	<camel:bean ref="cleanUp" />
	<camel:to  uri="seda:route2?waitForTaskToComplete=Never" />
   </camel:onCompletion>
</camel:route>



There is another required behavior: when route 2 starts,  transaction in
route 1 must be committed. Is a best practice to do this? Thanks !! 








--
View this message in context: http://camel.465427.n5.nabble.com/seda-endpoint-and-UoW-tp5734453p5734455.html
Sent from the Camel - Users mailing list archive at Nabble.com.