How to setup JNDI for Glassfish 3.1.2 for a stand-alone client?
问题 I try to connect from a stand-alone swing client (running in a separate JVM on the client machine) to the Glassfish server. I currently use the following settings from Netbeans and everything works just fine: System.setProperty("java.naming.factory.initial", "com.sun.enterprise.naming.SerialInitContextFactory"); System.setProperty("java.naming.factory.url.pkgs", "com.sun.enterprise.naming"); System.setProperty("java.naming.factory.state", "com.sun.corba.ee.impl.presentation.rmi