[jboss-cvs] JBossAS SVN: r82612 - branches/Branch_5_0/testsuite/src/main/org/jboss/test/hellojrmpiiop/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Jan 5 12:10:19 EST 2009
Author: smcgowan at redhat.com
Date: 2009-01-05 12:10:19 -0500 (Mon, 05 Jan 2009)
New Revision: 82612
Modified:
branches/Branch_5_0/testsuite/src/main/org/jboss/test/hellojrmpiiop/test/HelloTimingStressTestCase.java
Log:
JBAS-6287 - add workaround as done for JBTEST-5
Modified: branches/Branch_5_0/testsuite/src/main/org/jboss/test/hellojrmpiiop/test/HelloTimingStressTestCase.java
===================================================================
--- branches/Branch_5_0/testsuite/src/main/org/jboss/test/hellojrmpiiop/test/HelloTimingStressTestCase.java 2009-01-05 16:36:36 UTC (rev 82611)
+++ branches/Branch_5_0/testsuite/src/main/org/jboss/test/hellojrmpiiop/test/HelloTimingStressTestCase.java 2009-01-05 17:10:19 UTC (rev 82612)
@@ -48,6 +48,8 @@
// Attributes ----------------------------------------------------
private java.util.Properties cosnamingJndiProps;
private java.util.Properties iiopJndiProps;
+ private InitialContext ic = null;
+
// Static --------------------------------------------------------
@@ -77,7 +79,11 @@
InitialContext getInitialContext(java.util.Properties jndiProps)
throws Exception
{
- return new InitialContext(jndiProps);
+ if (ic == null)
+ ic = new InitialContext(jndiProps);
+
+ return ic;
+
}
// The two methods below are protected in the superclass. Here they're
More information about the jboss-cvs-commits
mailing list