I think it depends on the configuration of your server. The code seems ok.
When using a server behind a firewall, it is necessary to configure it in order to provide clients with the address of the firewall (otherwise, after the first lookup call, the server will send its local hostname to the external client) : RMI/JNDI-jnp : 1) the url must be the firewall's url 2) lauch your server with : -Djava.rmi.server.hostname=FIREWALL_ADDRESS_OR_NAME -Djava.rmi.server.useLocalHostname=false By using these parameters your server will "say" to all the clients that they must call the firewall. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3908180#3908180 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3908180 ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user