- Multiple URLs in JNDI Properties 2007-08-10 - By waynebaylor
Back Does JNDI support passing multiple URLs, for example:
| Properties p = new Properties(); | p.put(Context.INITIAL_CONTEXT_FACTORY, | "org.jnp.interfaces.NamingContextFactory"); | p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp .interfaces"); | p.put(Context.PROVIDER_URL, "serverA:1099,serverB:1099"); | Context c = new InitialContext(p);
When I try this only serverA is checked when a lookup is performed. If I set the servers up to use HA-JNDI and change the ports to 1100, then both are checked.
Is it possible to tell JNDI to check multiple URLs without setting up HA-JNDI?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic &p=4073227#4073227
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode =reply&p=4073227 __ ____ ____ ____ ____ ____ ____ ____ ____ ____ jboss-user mailing list jboss-user@(protected) https://lists.jboss.org/mailman/listinfo/jboss-user
|
|