I've been using glassfish appclient locally, by which I mean the same JVM on the same machine. It works fine for executing the client, which connects with CORBA, with syntax along the lines of "appclient -client foo.jar".
However, I cannot seem to get the exact same client code to lookup and execute an
EJB remotely across the internet when I pass it different connection properties. I believe this is known as "remoting" or RMI?
I've gone through several PDF's from Oracle on Glassfish admin and running Glassfish. Presumably, I'm misunderstanding a configuration. Please note that the error is
. Is there an EAR which I could try to obtain an InitialContext for which is either publicly available, or perhaps some could make available? Alternately, would someone be willing to try to remotely connect to an EAR which I make available?
I'm specifically interested in doing this from Glassfish.
successful run against EJB deployed on localhost:
same JAR, same EAR. The EAR deployed remotely:
client code, using jndi.properties for the connection parameters: