You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by user3152723 <un...@fifthelement.fi> on 2014/07/24 11:28:45 UTC

Unit test XA enabled route

Hello,

Could someone please help me to get started: I’m looking for (working)
example / tutorial on how to set up junit test for Camel route with jms and
odbc endpoints (connetion pools) - USING BLUEPRINT OSGi (Karaf) and XA
required.
(Solution can be Fuse specific.)

As an alternative, would it be adequate to set up junit test with spring
while deploying Camel route to OSGi runtime? Camel in Action and Apache
Camel Developer's Cookbook both have excellent example projects on how to
set up XA route, to start with.



Thanks
. osgi novice




--
View this message in context: http://camel.465427.n5.nabble.com/Unit-test-XA-enabled-route-tp5754352.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Unit test XA enabled route

Posted by user3152723 <un...@fifthelement.fi>.
If you choose to run your integration (api) components in osgi (<- Karaf <-
Fuse), you simply have to  (that is: you have no alternative but) forget
about TDD. 

May be not in theory, but take a dev team of Spring specialists, who can’t
but start coding test cases to define required functionality…




--
View this message in context: http://camel.465427.n5.nabble.com/Unit-test-XA-enabled-route-tp5754352p5754412.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Unit test XA enabled route

Posted by arnaudeprez <ar...@gmail.com>.
Hi,

Christian Mueler did a great "camel in transaction" sample :
https://github.com/muellerc/camel-in-transaction
Thx to him.



--
View this message in context: http://camel.465427.n5.nabble.com/Unit-test-XA-enabled-route-tp5754352p5754402.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Unit test XA enabled route

Posted by user3152723 <un...@fifthelement.fi>.
Third try to fix it right : db connetion with JDBC, not odbc . 



--
View this message in context: http://camel.465427.n5.nabble.com/Unit-test-XA-enabled-route-tp5754352p5754354.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Unit test XA enabled route

Posted by user3152723 <un...@fifthelement.fi>.
... tutorial on how to set up junit test for Camel route with jms and odbc
endpoints (connetion pools) 



Thanks
. osgi novice





--
View this message in context: http://camel.465427.n5.nabble.com/Unit-test-XA-enabled-route-tp5754352p5754353.html
Sent from the Camel - Users mailing list archive at Nabble.com.