Properties environment = new Properties();
environment.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
environment.put(Context.URL_PKG_PREFIXES, "org.jboss.namingrg.jnp.interfaces");
environment.put(Context.PROVIDER_URL, "jnp://remoteServerName:1099");
try{
InitialContext contesto=new InitialContext(environment);
ejbTest=(ITestRemote)contesto.lookup("RemoteEJBName/remote");
}
catch(NamingException e){
...
}