I misunderstand something (sorry but I'm an ActiveMQ / JCA newbie). When
using inbound communications, I thought that transactions were managed
transparently by the JCA Resource Adapter and that the only way to rollback
a transaction was to throw an error... So how can I do to handle the current
transaction in the onMessage() method ? In my Spring config file, the only
class that is linked with JTA transactions is the Jencks JCA connector (via
the transactionManager property) :
<bean id="queueListenerConnector" class="org.jencks.JCAConnector">
<property name="jcaContainer" ref="jencksJCAContainer" />
<property name="activationSpec" ref="queueActivationSpec" />
<property name="transactionManager" ref="transactionManager" />
<property name="ref" value="myListener" />
</bean>
<bean id="jencksJCAContainer" class="org.jencks.JCAContainer">
<property name="bootstrapContext" ref="bootstrapContext" />
<property name="resourceAdapter" ref="resourceAdapter" />
</bean>
<bean id="bootstrapContext"
class="org.jencks.factory.BootstrapContextFactoryBean">
<property name="threadPoolSize" value="25" />
</bean>
<bean id="resourceAdapter"
class="org.apache.activemq.ra.ActiveMQResourceAdapter">
<property name="serverUrl" value="tcp://localhost:61616" />
</bean>
<bean id="queueActivationSpec"
class="org.apache.activemq.ra.ActiveMQActivationSpec">
<property name="destination" value="test.queue" />
<property name="destinationType" value="javax.jms.Queue" />
</bean>
<bean id="transactionManager"
class="org.jencks.factory.TransactionManagerFactoryBean">
...
</bean>
...
--
View this message in context:
http://www.nabble.com/ActiveMQ-4-%2B-Jencks-%2B-XA-Transactions-tf1899733.html#a5251236
Sent from the ActiveMQ - User forum at Nabble.com.