camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darwish <othman.darw...@progressoft.com>
Subject Re: Transactions and Cache Levels
Date Mon, 03 Jun 2013 07:03:39 GMT
Yes cluas .. XA is evil  , i will  simplify my route design and make sure
that the JDBC operation is last step in my route 

Christian ..thank you for sample .. im reviewing the jmsAndJdbc  sample:

 from("activemqTx:queue:transaction.incoming.one")

                    .transacted("PROPAGATION_REQUIRED_JMS")

                    .transacted("PROPAGATION_REQUIRED_JDBC")

                    .to("sql:UPDATE account SET balance = (SELECT balance
from account where name = 'foo') - # WHERE name =
'foo'?dataSourceRef=dataSource")
                    .to("sql:UPDATE account SET balance = (SELECT balance
from account where name = 'bar') + # WHERE name =
'bar'?dataSourceRef=dataSource")
                    .to("activemqTx:queue:transaction.outgoing.one");



there is two transaction manager JMS and JDBC in same route which is
something new for me :)  and i think it should be considered before going to
XA option 





-----
Othman Darwish
ProgressSoft Corp.

--
View this message in context: http://camel.465427.n5.nabble.com/Transactions-and-Cache-Levels-tp5733618p5733657.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message