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 07:39:23 PDT

This is correct. The problem is that a datasource is not a CORBA object, so it's not stored in the
CosNaming service. Incidentally, this is one of the problems with writing code that explicitly
instantiates a specific naming provider. In the Java EE programming model, the container
is responsible for bootstrapping the appropriate naming service so the gory details are hidden
from the application. We provide a way to access physical resources from outside an EE
environment, but we recommend using the EE approach.
[Message sent by forum member 'ksak' (ksak)]

http://forums.java.net/jive/thread.jspa?messageID=227963