User: d_jencks
Date: 01/12/17 11:55:05
Modified: src/main/org/jboss/resource/connectionmanager
BaseConnectionManager.java
Log:
Made failure during call to XAResource.start send an exception through
ConnectionManager.allocateConnection. Thanks to slaurent for pointing this problem out
Revision Changes Path
1.5 +4 -1
jbosscx/src/main/org/jboss/resource/connectionmanager/BaseConnectionManager.java
Index: BaseConnectionManager.java
===================================================================
RCS file:
/cvsroot/jboss/jbosscx/src/main/org/jboss/resource/connectionmanager/BaseConnectionManager.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- BaseConnectionManager.java 2001/11/26 03:24:53 1.4
+++ BaseConnectionManager.java 2001/12/17 19:55:05 1.5
@@ -777,7 +777,10 @@
public void enlist()
throws SystemException, RollbackException
{
- trans.enlistResource(xar);
+ if (!trans.enlistResource(xar))
+ {
+ throw new SystemException("Cannot enlist resource in transaction!");
+ } // end of if ()
if (pool == null)
{
// Don't need this unless the connection is not pooled.
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development