[jboss-user] [JNDI/Naming/Network] - Error invoking old rmi server
analorite
do-not-reply at jboss.com
Mon Sep 3 09:53:15 EDT 2007
Hi everyone.
I've got this cliente code, running on JBoss:
anonymous wrote : 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");
|
|
And i have the following error:
Vinculos disponibles[0]:HelloServer
Naming lookup...
Receive timed out
javax.naming.CommunicationException
Any idea?
Thanks in advance. Ana.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080520#4080520
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080520
More information about the jboss-user
mailing list