Hi,
I am having a problem using InitialContext for lookup of EJB in a JBoss Cluster. The code works fine when clustering is not used. I am working on JBoss-3.2.3.
The problem is as follows:
Context ctx = new InitialContext();
Then i lookup some bean.
The code works fine in case clustering is NOT enabled.
However, when i switch on clustering, i get the following error:
javax.naming.CommunicationException: Failed to retrieve stub from server 0.0.0.0:1100
My jndi.properties file is as follows:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
Does anyone know any solution to this?
Thank you.