You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by lexsoto <le...@gmail.com> on 2011/05/23 19:21:53 UTC

The resource is allready being used in transaction context

Hi,

Anybody seen this before?
     Caused by: javax.jms.JMSException: The resource is allready being used
in transaction context.
        at
org.apache.activemq.ra.ManagedTransactionContext.setUseSharedTxContext(ManagedTransactionContext.java:47)
        at
org.apache.activemq.ra.ManagedSessionProxy.setUseSharedTxContext(ManagedSessionProxy.java:67)
        at
org.apache.activemq.ra.ManagedConnectionProxy.createSessionProxy(ManagedConnectionProxy.java:122)
        at
org.apache.activemq.ra.ManagedConnectionProxy.createSession(ManagedConnectionProxy.java:105)

I am running AMQ 5.5, this exception is thrown from a client running in
JBoss when calling:  
    createSession(false, Session.CLIENT_ACKNOWLEDGE)

My connection factory is configured as:
	 <tx-connection-factory>
			<jndi-name>AMQConnectionFactory</jndi-name>
			<use-java-context>false</use-java-context>
                        <rar-name>activemq-ra.rar</rar-name>
                       
<connection-definition>javax.jms.ConnectionFactory</connection-definition>
                        <min-pool-size>1</min-pool-size>
                        <max-pool-size>20</max-pool-size>
                       
<blocking-timeout-millis>30000</blocking-timeout-millis>
                       <idle-timeout-minutes>3</idle-timeout-minutes>
                 </tx-connection-factory>


How can I avoid this error?

TIA

--
View this message in context: http://activemq.2283324.n4.nabble.com/The-resource-is-allready-being-used-in-transaction-context-tp3544709p3544709.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: The resource is allready being used in transaction context

Posted by lexsoto <le...@gmail.com>.
There is no solution yet to this issue.
The AMQ connection is not participating in the distribution transaction.

--
View this message in context: http://activemq.2283324.n4.nabble.com/The-resource-is-allready-being-used-in-transaction-context-tp3544709p3667665.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.