This content has been marked as final. Show 2 replies
When you access the JNDI context from a remote JVM, you need to provide a few extra parameters when you create the initial context.
Properties p = new Properties(); p.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory"); p.put(Context.PROVIDER_URL, "jnp://myhost:1099"); Context ctx = new InitialContext(p);
Also put <jboss-home>/client/jbossall-client.jar in your client's classpath.
Great! Worked straight away...
Thanks a million.