[
http://jira.jboss.com/jira/browse/JBAS-3336?page=all ]
Weston Price resolved JBAS-3336.
--------------------------------
Resolution: Done
Connections are no longer returned to the pool upon XA enlistment failure. Changes to
XAManagedConnection prevent this from occuring.
Destroy connections after a ResourceManager failure
---------------------------------------------------
Key: JBAS-3336
URL:
http://jira.jboss.com/jira/browse/JBAS-3336
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: JCA service
Affects Versions: JBossAS-4.0.4.GA
Reporter: Adrian Brock
Assigned To: Weston Price
Fix For: JBossAS-4.0.5.CR1
In TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.enlist()
we don't check the XAException for a total failure.
If the XAException has error code XAER_RMERR or XAER_RMFAIL
we should just destroy the connection straightaway.
We don't want these connections being returned to the pool,
only for the valid connection checker to close them next time the connection is used.
There is no point.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira