/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test;
import java.util.Vector;
import java.util.Hashtable;
import java.net.InetAddress;
import javax.management.ObjectName;
import javax.naming.InitialContext;
import org.jboss.jmx.adaptor.rmi.RMIAdaptor;
/**
* Derived implementation of JBossTestServices for cluster testing.
*
* @see org.jboss.test.JBossTestServices
*
* @author Sacha Labourey.
* @version $Revision: 1.1.4.1 $
*
*
Revisions:
*
*
12 avril 2002 Sacha Labourey:
*
*/
public class JBossTestClusteredServices extends JBossTestServices
{
// Constants -----------------------------------------------------
// Attributes ----------------------------------------------------
protected RMIAdaptor[] servers = null;
// Static --------------------------------------------------------
protected static String[] serverNames = {"jnp://localhost:1099", "jnp://localhost:21099"};
protected static Hashtable[] targets = null;
static
{
// UGLY (but a good start...)
Hashtable defProps = new Hashtable ();
defProps.put ("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
defProps.put ("java.naming.factory.url.pkgs", "org.jnp.interfaces");
Vector tgs = new Vector (serverNames.length);
for (int i=0; i