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.clientsessioni...@e10de4c
19:02:54,641 TRACE [org.hornetq.ra.HornetQRAXAResource] 
constructor(org.hornetq.ra.hornetqramanagedconnect...@16fe8172, 
org.hornetq.core.client.impl.clientsessioni...@e10de4c)
19:02:54,642 TRACE [org.hornetq.ra.HornetQRAManagedConnection] 
addConnectionEventListener(org.jboss.resource.connectionmanager.txconnectionmanager$txconnectioneventliste...@1ee46f29[state=normal
 mc=org.hornetq.ra.hornetqramanagedconnect...@16fe8172 handles=0 
lastUse=1268848974642 permit=false trackByTx=false 
mcp=org.jboss.resource.connectionmanager.jbossmanagedconnectionpool$poolby...@273dfc97
 
context=org.jboss.resource.connectionmanager.internalmanagedconnectionp...@569231a1
 xaresource=org.hornetq.ra.hornetqraxaresou...@17f86d6e txSync=null])
19:02:54,643 TRACE 
[org.jboss.resource.connectionmanager.JBossManagedConnectionPool] supplying new 
ManagedConnection: 
org.jboss.resource.connectionmanager.txconnectionmanager$txconnectioneventliste...@1ee46f29[state=normal
 mc=org.hornetq.ra.hornetqramanagedconnect...@16fe8172 handles=0 
lastUse=1268848974642 permit=false trackByTx=false 
mcp=org.jboss.resource.connectionmanager.jbossmanagedconnectionpool$poolby...@273dfc97
 
context=org.jboss.resource.connectionmanager.internalmanagedconnectionp...@569231a1
 xaresource=org.hornetq.ra.hornetqraxaresou...@17f86d6e txSync=null]
19:02:54,644 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] 
No transaction, no need to enlist: 
org.jboss.resource.connectionmanager.txconnectionmanager$txconnectioneventliste...@1ee46f29[state=normal
 mc=org.hornetq.ra.hornetqramanagedconnect...@16fe8172 handles=0 
lastUse=1268848974642 permit=true trackByTx=false 
mcp=org.jboss.resource.connectionmanager.jbossmanagedconnectionpool$poolby...@273dfc97
 
context=org.jboss.resource.connectionmanager.internalmanagedconnectionp...@569231a1
 xaresource=org.hornetq.ra.hornetqraxaresou...@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


_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to