activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Brelet <>
Subject Re: ActiveMQ 4 + Jencks + XA Transactions
Date Mon, 10 Jul 2006 12:55:59 GMT

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 id="jencksJCAContainer" class="org.jencks.JCAContainer">
	<property name="bootstrapContext" ref="bootstrapContext" />
	<property name="resourceAdapter" ref="resourceAdapter" />
<bean id="bootstrapContext"
	<property name="threadPoolSize" value="25" />

<bean id="resourceAdapter"
	<property name="serverUrl" value="tcp://localhost:61616" />

<bean id="queueActivationSpec"
	<property name="destination" value="test.queue" />
	<property name="destinationType" value="javax.jms.Queue" />

<bean id="transactionManager"

View this message in context:
Sent from the ActiveMQ - User forum at

View raw message