Configure High Availability JNDI (HA-JNDI)
To use it use the following properties when connecting to JNDI. Hashtable jndiParameters = new Hashtable(); jndiParameters.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); jndiParameters.put("java.naming.factory.url.pkgs=", "org.jboss.naming:org.jnp.interfaces"); initialContext = new InitialContext(jndiParameters); For more information on using HA-JNDI see the JBoss Application Server clustering documentation