[jboss-cvs] JBossAS SVN: r60930 - trunk/testsuite/src/main/org/jboss/test/cluster/partition/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Feb 26 23:04:29 EST 2007


Author: bstansberry at jboss.com
Date: 2007-02-26 23:04:28 -0500 (Mon, 26 Feb 2007)
New Revision: 60930

Modified:
   trunk/testsuite/src/main/org/jboss/test/cluster/partition/test/PartitionRestartUnitTestCase.java
Log:
Don't use HA-JNDI discovery; it's not needed

Modified: trunk/testsuite/src/main/org/jboss/test/cluster/partition/test/PartitionRestartUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/partition/test/PartitionRestartUnitTestCase.java	2007-02-27 04:03:48 UTC (rev 60929)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/partition/test/PartitionRestartUnitTestCase.java	2007-02-27 04:04:28 UTC (rev 60930)
@@ -22,6 +22,8 @@
 
 package org.jboss.test.cluster.partition.test;
 
+import java.util.Properties;
+
 import javax.management.ObjectName;
 import javax.naming.Context;
 import javax.naming.InitialContext;
@@ -65,7 +67,12 @@
       
       RMIAdaptor[] adaptors = this.getAdaptors(); 
       
-      Context ctx = new InitialContext();
+      String[] urls = getNamingURLs();
+      Properties env = new Properties();
+      env.setProperty(Context.INITIAL_CONTEXT_FACTORY,
+         "org.jnp.interfaces.NamingContextFactory");
+      env.setProperty(Context.PROVIDER_URL, urls[0]);
+      Context ctx = new InitialContext(env);
       getLog().debug("OK");
       
       getLog().debug("");




More information about the jboss-cvs-commits mailing list