Accessing DataSources via JNDI remotely or from out-of-container vm's
Hi.
Jboss allows making its DataSources available for JNDI remote access:
http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigDataSources
Glassfish also:
http://javahowto.blogspot.com/2006/08/access-glassfish-datasource-remotely.html
The specs says anything about this? Is this standards-correct?
Regards.
# 1
The configuration of the physical datasource itself is not covered by the specs.When it comes to
accessing that resource, it's important to understand that any access from code running outside of a
Java EE environment is not covered by the spec either. The only portable way to access a
an EE resource is via either a resource-ref or @Resource.Direct global JNDI lookups bypass the
Java EE component environment and therefore are not portable.
Most application servers offer some way to directly access physical resources from non Java EE clients,
but the specifics as to what code must be in the classpath, how to instantiate the naming provider,
and how to specify the global JNDI name, differ.
--ken
ksaksa at 2007-7-29 16:21:54 >
