camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srikanthsettivari <srikanth.settiv...@gmail.com>
Subject Camel transactions
Date Fri, 03 May 2013 07:07:10 GMT
Hi,
My route is like this

from (dbtq:bd)
.to(direct:myendpoint)
from(direct:myendpoint)
.to(jms:activemq)

Here
from (dbtq:bd)
.to(direct:myendpoint)

dbtq:bd is always polling the records from database and putting in to the
direct endpoint, after getting the records from data base we are updating
the status like completed, if we can get any errors in between this route we
need to roll back the status in database like not completed. how can we
handle transaction here.



Another one is

from(direct:myendpoint)
.process(new Processor())
.to(jms:activemq:myqueue)

 we are getting the records from direct end point and process the recrods
and send to jms queue.
How can we handle the transaction here


Thanks:



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

Mime
View raw message