[jboss-user] [Clustering/JBoss] - How to define HAJNDI

jimmy6 do-not-reply at jboss.com
Wed Aug 20 05:53:45 EDT 2008

I want to cluster a User object among all server. I know HAJNDI can do that but how to define the user object inside cluster wide context and get it back from jndi lookup?

I just saw the following code in the documentation. How about define it?
Properties p = new Properties();
p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
p.put(Context.PROVIDER_URL, "localhost:1100"); // HA-JNDI port.
return new InitialContext(p);

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

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

More information about the jboss-user mailing list