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)]