Code like the folloiwng should be sufficient to direct your JNDI lookups to a 
specific server.  Change the provide url as needed.

You can use HA-JNDI by using the HA-JNDI port in the url.  By default, this is 
port 1100.  Note that HA-JNDI requests may not go to the specified server as 
HA-JNDI uses round-robin load balancing.  This would only matter if you had 
local entries bound with the same name to different values in which case you 
wouldn't want to use HA-JNDI.

env.put(Context.INITIAL_CONTEXT_FACTORY, 
org.jnp.interfaces.NamingContextFactory");
env.put(Context.PROVIDER_URL, "jnp://myserver:1099");
env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
Context naming = new InitialContext(env);

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

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


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to