Well, I've never tried to do what you're asking about, but it looks like it's
just a matter of telling JNDIDetector which URL to connect to so that it gets an
InitialContext from HA-JNDI instead of JNDI. In particular, JNDIDetector.createContext()
does this:
| env.put(Context.PROVIDER_URL, host + ":" + port);
|
so in your code you want
| detector.setPort(1100);
|
where 1100 is the default port for HA-JNDI, as you can see in the
"jboss:service=HAJNDI" MBean in
$JBOSS_HOME/server/all/deploy/cluster-service.xml. For more about HA-JNDI, see section
"14. Clustered JNDI Services" in the AS documentation:
http://www.jboss.org/file-access/default/members/jbossas/freezone/docs/Se....
Let me know how it goes.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244495#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...