users@glassfish.java.net

Re: ORB/IIOP listeners -- Connection timeout when server is not on localhos

From: <glassfish_at_javadesktop.org>
Date: Thu, 03 Apr 2008 07:16:02 PST

Try this:

Define the properties for the initial host and port as system properties, rather than in a separate Properties object which you pass to the InitialContext constructor. (There's more explanation of this in the EJB FAQ here: https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#StandaloneRemoteEJB).

Use either -D on the java command line or use System.setProperty method invocations from inside your program. And then use the no-arg InitialContext constructor.

See if that might help.

- Tim
[Message sent by forum member 'tjquinn' (tjquinn)]

http://forums.java.net/jive/thread.jspa?messageID=267580