db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r831584 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/J2EEDataSourceTest.java
Date Sat, 31 Oct 2009 19:26:00 GMT
Author: myrnavl
Date: Sat Oct 31 19:26:00 2009
New Revision: 831584

URL: http://svn.apache.org/viewvc?rev=831584&view=rev
Log:
DERBY-4151; java.net.ConnectionException in J2EEDataSourceTest with network server on IBM
iseries;
	adding some close() calls in 3 fixtures allowed for proper processing on cleanup

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/J2EEDataSourceTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/J2EEDataSourceTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/J2EEDataSourceTest.java?rev=831584&r1=831583&r2=831584&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/J2EEDataSourceTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/J2EEDataSourceTest.java
Sat Oct 31 19:26:00 2009
@@ -776,6 +776,7 @@
         Connection c = pc.getConnection();
         c.setAutoCommit(false);
         testCloseActiveConnection(c, false, false);
+        pc.close();
     }
 
     /**
@@ -790,6 +791,7 @@
         Connection c = xa.getConnection();
         c.setAutoCommit(false);
         testCloseActiveConnection(c, false, false);
+        xa.close();
     }
 
     /**
@@ -812,6 +814,7 @@
         c.setAutoCommit(false);
         testCloseActiveConnection(c, false, true);
         xar.end(xid, XAResource.TMSUCCESS);
+        xa.close();
     }
 
     /**



Mime
View raw message