[jboss-cvs] JBossAS SVN: r63608 - trunk/ejb3/src/test/org/jboss/ejb3/test/consumer.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Jun 22 09:38:16 EDT 2007
Author: wolfc
Date: 2007-06-22 09:38:16 -0400 (Fri, 22 Jun 2007)
New Revision: 63608
Modified:
trunk/ejb3/src/test/org/jboss/ejb3/test/consumer/DeploymentDescriptorQueueTestConsumer.java
Log:
Fixed connection leak
Modified: trunk/ejb3/src/test/org/jboss/ejb3/test/consumer/DeploymentDescriptorQueueTestConsumer.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/consumer/DeploymentDescriptorQueueTestConsumer.java 2007-06-22 13:13:10 UTC (rev 63607)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/consumer/DeploymentDescriptorQueueTestConsumer.java 2007-06-22 13:38:16 UTC (rev 63608)
@@ -64,7 +64,8 @@
{
stateless.test();
statelessLocal.testLocal();
- testDatasource.getConnection();
+ java.sql.Connection connection = testDatasource.getConnection();
+ connection.close();
Context initCtx = new InitialContext();
Context myEnv = (Context) initCtx.lookup(Container.ENC_CTX_NAME + "/env");
More information about the jboss-cvs-commits
mailing list