Convenient superclass for JNDI-based service locators. Subclasses are
JavaBeans, exposing a "jndiName" property. This may or may not include
the "java:comp/env/" prefix expected by J2EE applications when accessing
a locally mapped (ENC - Environmental Naming Context) resource. If it
doesn't, the "java:comp/env/" prefix will be prepended if the "resourceRef"
property is true (the default is false) and no other scheme
like "java:" is given.
Subclasses can invoke the lookup method whenever it is appropriate.
Some classes might do this on initialization, while others might do it
on demand. The latter strategy is more flexible in that it allows for
initialization of the locator before the JNDI object is available.
Subclasses can invoke the lookup method whenever it is appropriate. Some classes might do this on initialization, while others might do it on demand. The latter strategy is more flexible in that it allows for initialization of the locator before the JNDI object is available.