g'day,
I have been banging my head against this particular wall for a few days now with nothing to show execpt an increasingly red mark on my forehead.
I have 2 JBoss appservers and I want to perform a remote ejb call from appserver 'A' to appserver 'B'.
I start by creating an InitialContext, using a hashmap to specify the ipaddress of the remote url. However, the obejct that is returned is not a $Proxy to the remote JNDI, it is a real InitialContext on the local JNDI.
So, my question is, how do I force the InitialContext to be attached to the remote JNDI? What piece of this puzzle am I missing?
We are running 4.0.3SP1 on RHEL.
For those playing the home game:
Properties env = new Properties(); env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"); env.put(Context.PROVIDER_URL, "jnp://192.168.15.101:1099"); InitialContext jndi = new InitialContext(env); jndi.lookup("...");
We are running 4.0.3SP1