You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by mattmadhavan <ma...@yahoo.com> on 2014/09/24 19:46:59 UTC

Camel Testing -JTA java.sql.SQLSyntaxErrorException: ORA-02049: timeout: distributed transaction waiting for lock

Hello,
I am writing some Unit tests to test my routes which are configured to use
JTA and the routes work great!

But I want to clean the target table before I start my tests, But I am
getting the following Exception



My Test file looks like this!



Been stuck on this for a while. Any ideas please?

Thanks in advance!

Matt'M





-----
Thanks
Matt G. Madhavan
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Testing-JTA-java-sql-SQLSyntaxErrorException-ORA-02049-timeout-distributed-transaction-waitingk-tp5756981.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Testing -JTA java.sql.SQLSyntaxErrorException: ORA-02049: timeout: distributed transaction waiting for lock

Posted by mattmadhavan <ma...@yahoo.com>.
Hello,
I found this section 
*Integration Testing with Spring*
in the following link,  http://camel.apache.org/book-pattern-appendix.html
<http://camel.apache.org/book-pattern-appendix.html>  
and I followed this example from the above link.
https://github.com/rajivj2/example2/blob/master/src/test/java/com/example/NotificationRouterIT.java
<https://github.com/rajivj2/example2/blob/master/src/test/java/com/example/NotificationRouterIT.java>  

It solved my Transaction Issues during testing!

Thanks
Matt'M



-----
Thanks
Matt G. Madhavan
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Testing-JTA-java-sql-SQLSyntaxErrorException-ORA-02049-timeout-distributed-transaction-waitingk-tp5756981p5756985.html
Sent from the Camel - Users mailing list archive at Nabble.com.