You can use the properties "org.omg.CORBA.ORBInitialHost" and "org.omg.CORBA.ORBInitialPort". For example:
$ java -Dorg.omg.CORBA.ORBInitialHost=serverName -Dorg.omg.CORBA.ORBInitialPort=3700 -Djava.security.auth.login.config=./auth.conf -cp $GF_HOME/glassfish/modules/gf-client.jar:TheApplication.jar TheApplicationMainClassName
Another interesting option, would be to deploy the swing application as an "application client" in glassfish server, so it could be easier to install on the clients with Java Web Start technology. You may want to see this article:
http://java.sun.com/developer/technicalArticles/J2EE/jws-glassfish/part3.html
[Message sent by forum member 'jmarine' (jmarine_at_tinet.org)]
http://forums.java.net/jive/thread.jspa?messageID=377477