users@glassfish.java.net

Re: EJB Client runs in Netbeans, but not outside

From: <glassfish_at_javadesktop.org>
Date: Thu, 22 Jul 2010 06:54:14 PDT

Hi Tim

Thank you for your comments.

Unfortunately it is still not fully working.

It works perfectly when appclient is executed on the same computer as the Glassfish server. It works even if I copy the .jar files in another directory and if I use a package-appclient generated "appclient". If I add a -targetserver option it works for the network name or IP address of the current computer as well as for localhost or 127.0.0.1 and for the right port number or no port number (for the default 3700). If I make a mistake on either the address or the port, I get an error message after a timeout period.

If I copy the .jar files on another computer it still doesn't work. No matter if I use a local Glassfish installation (same V3.01 version as on the server) or a package-appclient generated appclient, no matter if I modify the .xml file or I use the -targetserver option (or both), it doesn't work. If I make a mistake on the server address or port number, I get the error message after a while, as previously. If there is no mistake, nothing happens (the appclient is still and still running with no result - I stopped it after about ten hours - no network timeout is that long).

I tried Linux to Windows, Windows to Linux, Windows to Windows with the same results.

Of course, I disabled all firewalls (with the firewalls up and running, I get at least an error message).

Does anyone know how to do to run a remote client?
[Message sent by forum member 'mdynca']

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