[jboss-cvs] JBossAS SVN: r67942 - trunk/testsuite/src/main/org/jboss/test/jmsra/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Dec 5 09:05:25 EST 2007


Author: adrian at jboss.org
Date: 2007-12-05 09:05:25 -0500 (Wed, 05 Dec 2007)
New Revision: 67942

Modified:
   trunk/testsuite/src/main/org/jboss/test/jmsra/test/RaTest.java
Log:
Don't close the cached test InitialContext otherwise it will be broken for later tests

Modified: trunk/testsuite/src/main/org/jboss/test/jmsra/test/RaTest.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jmsra/test/RaTest.java	2007-12-05 14:03:22 UTC (rev 67941)
+++ trunk/testsuite/src/main/org/jboss/test/jmsra/test/RaTest.java	2007-12-05 14:05:25 UTC (rev 67942)
@@ -169,17 +169,10 @@
       super.setUp();
       // Create a publisher
       Context context = getInitialContext();
-      try
-      {
-         PublisherHome home = (PublisherHome)context.lookup(beanJNDI);
-         publisher = home.create();
+      PublisherHome home = (PublisherHome)context.lookup(beanJNDI);
+      publisher = home.create();
 
-         init(context);
-      }
-      finally
-      {
-         context.close();
-      }
+      init(context);
 
       // start up the session
       connection.start();




More information about the jboss-cvs-commits mailing list