[jboss-user] [JCA] New message: "Re: HornetQ RA integration"

Jeff Mesnil do-not-reply at jboss.com
Wed Mar 17 14:32:52 EDT 2010


User development,

A new message was posted in the thread "HornetQ RA integration":

http://community.jboss.org/message/532604#532604

Author  : Jeff Mesnil
Profile : http://community.jboss.org/people/jmesnil

Message:
--------------------------------------------------------------
I still have an issu even when I defer the creation of the JMS resources.
 
19:02:54,257 TRACE [org.hornetq.ra.HornetQRAManagedConnection] getXAResource()
19:02:54,637 TRACE [org.hornetq.ra.HornetQRAManagedConnection] XAResource=org.hornetq.core.client.impl.ClientSessionImpl at e10de4c
19:02:54,641 TRACE [org.hornetq.ra.HornetQRAXAResource] constructor(org.hornetq.ra.HornetQRAManagedConnection at 16fe8172, org.hornetq.core.client.impl.ClientSessionImpl at e10de4c)
19:02:54,642 TRACE [org.hornetq.ra.HornetQRAManagedConnection] addConnectionEventListener(org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 1ee46f29[state=NORMAL mc=org.hornetq.ra.HornetQRAManagedConnection at 16fe8172 handles=0 lastUse=1268848974642 permit=false trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$PoolByCri at 273dfc97 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 569231a1 xaResource=org.hornetq.ra.HornetQRAXAResource at 17f86d6e txSync=null])
19:02:54,643 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] supplying new ManagedConnection: org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 1ee46f29[state=NORMAL mc=org.hornetq.ra.HornetQRAManagedConnection at 16fe8172 handles=0 lastUse=1268848974642 permit=false trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$PoolByCri at 273dfc97 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 569231a1 xaResource=org.hornetq.ra.HornetQRAXAResource at 17f86d6e txSync=null]
19:02:54,644 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] No transaction, no need to enlist: org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 1ee46f29[state=NORMAL mc=org.hornetq.ra.HornetQRAManagedConnection at 16fe8172 handles=0 lastUse=1268848974642 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$PoolByCri at 273dfc97 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 569231a1 xaResource=org.hornetq.ra.HornetQRAXAResource at 17f86d6e txSync=null]
19:02:54,645 TRACE [org.hornetq.ra.HornetQRAManagedConnection] getConnection(null, HornetQRAConnectionRequestInfo[type=1, useXA=false, transacted=false, acknowledgeMode=1, clientID=null, userName=j2ee, password=j2ee])
 
According to the log, getXAResource() is called on the ManagedConnection
-> I create the underlying JMS XA Session
Then the tm realizes there is no TX and does not enlist the xaresource
Finally getConnection() is called on the ManagedConnection
-> It will return the JMS XA session
 
In the TCK, I have a lot of failures because the tests call methods which are not allowed on XA Session (e.g. Session.recover()).
And the issues is that different tests use the same connection-factory settings either inside or outside a transaction.
 
It's not clear to me but this seems to imply that a ManagedConnection with XA transaction has to accept doing work outside a transaction.
I don't find the relevant section in the JCA spec. wdyt?

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/532604#532604




More information about the jboss-user mailing list