Comma seperated hosts/urls in the Context.PROVIDER_URL are supported.

  | public class TestJNDI
  | {
  |    public static void main(String[] args) throws Exception
  |    {
  |       Properties env = new Properties();
  |       env.setProperty(Context.INITIAL_CONTEXT_FACTORY,
  |          "org.jnp.interfaces.NamingContextFactory");
  |       env.setProperty(Context.URL_PKG_PREFIXES,
  |          "org.jboss.naming:org.jnp.interfaces");
  |       env.setProperty(Context.PROVIDER_URL, 
"jnp://badhost:1099,jnp://localhost:1099");
  |       InitialContext ctx = new InitialContext(env);
  |       Object root = ctx.lookup("");
  |       System.out.println(root);
  |    }
  | }
  | 


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882684#3882684

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3882684


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to