users@glassfish.java.net

Re: glassfish can not resolve JNDI name properly

From: <forums_at_java.net>
Date: Mon, 8 Aug 2011 08:29:00 -0500 (CDT)

You can look up java:global/MailServer/ServerLogic/ServerUtils in java code,
and pass the host & port in command line:

-Dorg.omg.CORBA.ORBInitialHost=xxx -Dorg.omg.CORBA.ORBInitialPort=xxxx

When running standalone java client, you will need gf-client.jar, which
consists of all glassfish jars needed by java client.  It may have more jars
than is actually needed by your app, but it's safe and flexible to use
gf-client.jar than to pick and choose jars to include in client classpath.


--
[Message sent by forum member 'cf126330']
View Post: http://forums.java.net/node/829815