There's no standard for accessing this kind of resource outside of an EE environment. The answer
will be different for each Java EE implementation. In the case of Glassfish, you place
appserv-rt.jar in the client classpath and instantiate the no-arg InitialContext constructor.
The Java VM properties listed earlier in the thread need to be set to specify the target host/port
if the client is running on a different machine than the server.
[Message sent by forum member 'ksak' (ksak)]
http://forums.java.net/jive/thread.jspa?messageID=227992