Re: Camel CDI with standalone JTA in Weld SE

2017-12-12 Thread Gary Hodgson
Hi, I just wanted to update this thread that I made some progress and believe I have a somewhat working version with JavaSE, narayana, camel and activemq. Using the example in [0] I tried using a JcaPooledConnectionFactory to handle the XA and this seems to work. The pertinent commit is [1]. Ther

Re: Camel CDI with standalone JTA in Weld SE

2017-11-30 Thread Gary Hodgson
Hi Antonin So I created a branch which attempts to use Narayana. https://github.com/garyhodgson/camel-example-cdi-standalone-jta/tree/narayana I see the arjuna transaction manager starts up but the logs seem to indicate too little interaction with the activemq connection factory I think, and the

Re: Camel CDI with standalone JTA in Weld SE

2017-11-28 Thread Antonin Stefanutti
Hi Gary, Would that be possible for you to test with anther transaction implementation? IIRC I add some issues with Atomikos and then switch to JBoss JTA / Narayana and it worked. I plan to add a Camel CDI / JMS / JTA example ASAP which should cover that. Antonin > On 28 Nov 2017, at 00:25, G

Re: Camel CDI with standalone JTA in Weld SE

2017-11-27 Thread Gary Hodgson
Scratch that - setting the activeMQConfiguration.setUseSingleConnection(true) causes everything to run in the same thread and the problem still occurs. On 27 November 2017 at 23:59, Gary Hodgson wrote: > Hi > > So after a hiatus I got time to look at this problem again. From delving > into the

Re: Camel CDI with standalone JTA in Weld SE

2017-11-27 Thread Gary Hodgson
Hi So after a hiatus I got time to look at this problem again. From delving into the atomikos code and the trace logs I believe the issue lies in threading. As shown in the logs below the atomikos jms factory bean appears to correctly create a composite transaction on the camel JmsConsumer threa

Re: Camel CDI with standalone JTA in Weld SE

2017-11-06 Thread Gary Hodgson
Hi Antonin. Thanks for the response. I attempted a naive implementation of TransactionServices and it appears to load via the serviceloader correctly, and produce UserTransactions: https://github.com/garyhodgson/camel-example-cdi-standalone-jta/blob/TransactionServices/src/main/java/org/apache/ca

Re: Camel CDI with standalone JTA in Weld SE

2017-11-06 Thread Antonin Stefanutti
Hi Gary, Your CDI producers for the ActiveMQ component and the transaction manager look OK (aside that you would have to destroy the connection factory in a dispose method). However The way you produce the UserTransaction may be problematic. With Weld SE, you would typically implement org.jbo