users@glassfish.java.net

Re: Accessing DataSources via JNDI remotely or from out-of-container vm's

From: <glassfish_at_javadesktop.org>
Date: Tue, 24 Jul 2007 08:55:31 PDT

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