[jboss-user] [JCA] - HornetQ RA integration
Jesper Pedersen
do-not-reply at jboss.com
Wed Apr 21 09:27:03 EDT 2010
Jesper Pedersen [http://community.jboss.org/people/jesper.pedersen] replied to the discussion
"HornetQ RA integration"
To view the discussion, visit: http://community.jboss.org/message/538726#538726
--------------------------------------------------------------
> We're considering the case, where a managed connection has been used as part of a local transaction, then that's completed and it's returned to the pool.
In this the managed connection should reset to its default state through the ManagedConnection.close() method. See 7.10 in JCA 1.6.
> The same connection is then retrieved from the pool, getXAResource is called, but it's not enlisted in any JTA tx.
>
>
>
> The user then sends some messages using this connection. (There is actually a TCK test that tests this)
>
>
>
> How should that connection behave?
A transactional resource adapter used outside of a transaction must behave as auto-commit = true. See 7.15.1.1 in JCA 1.6.
> According to the previous discussion it should behave as a non transacted session, however that was for the case when the connection was previously used as part of another JTA tx, in this case the connection has been used as part of a local tx.
Could you expand on this "previously used" case ?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/538726#538726]
Start a new discussion in JCA at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100421/d106de36/attachment.html
More information about the jboss-user
mailing list