[jboss-user] [JNDI/Naming/Network] - Multiple URLs in JNDI Properties
waynebaylor
do-not-reply at jboss.com
Fri Aug 10 19:12:00 EDT 2007
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
More information about the jboss-user
mailing list