activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lexsoto <lexs...@gmail.com>
Subject The resource is allready being used in transaction context
Date Mon, 23 May 2011 17:21:53 GMT
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.

Mime
View raw message