db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel John Debrunner (JIRA)" <derby-...@db.apache.org>
Subject [jira] Created: (DERBY-1038) Client's XAResource.getConnection() returns a new connection instead of throwing an exception when a global transaction is active for the existing connection
Date Thu, 23 Feb 2006 04:48:04 GMT
Client's XAResource.getConnection() returns a new connection instead of throwing an exception
when a global transaction is active for the existing connection
-------------------------------------------------------------------------------------------------------------------------------------------------------------

         Key: DERBY-1038
         URL: http://issues.apache.org/jira/browse/DERBY-1038
     Project: Derby
        Type: Bug
  Components: Network Client, JDBC  
    Reporter: Daniel John Debrunner
     Fix For: 10.2.0.0


Seen in the XATest.java test for this code: The client prints out

FAIL: getConnection with active global xact

around line 715

            conn.commit();
            xar.start(xid3, XAResource.TMNOFLAGS);

            /*
             -- now I shouldn't be able to yank it
             xa_getconnection;
             */
            try {
                xac.getConnection();
                System.out
                        .println("FAIL: getConnection with active global xact");
            } catch (SQLException sqle) {
                TestUtil.dumpSQLExceptions(sqle, true);
            }

Note this was discovered in the process of getting the client to run the XATest, it is not
part of derbynetclientmats yet.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message