Hi everyone.
I've got this cliente code, running on JBoss:
Registry registry = LocateRegistry.getRegistry("10.95.18.121");
if (registry != null){
String[] entries = registry.list();
if (entries != null){
for (int x = 0; x < entries.length; x++){
log.debug("Vinculos disponibles[" + x + "]:" + entries[x]);
}
Properties env = new Properties(); env.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
env.put("java.naming.provider.url","jnp://localhost:1099"); env.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
ctx = new InitialContext(env);
log.debug("Naming lookup....");
Object obj = ctx.lookup("HelloServer");