Greetings,
I have a javax.naming.spi.ObjectFactory implemented in a JAR file
sitting in $CATALINA_HOME/lib. I have declared it as a <Resource /> in
$CATALINA_HOME/conf/server.xml. Upon Tomcat startup, its
getObjectInstance(...) method is being invoked, and within that method,
some objects are bound into the javax.naming.Context object that is
passed in as an argument.
Normally, to give application access to a global resource I'd declare a
<ResourceLink /> in the applications META-INF/context.xml file or in
$CATALINA_HOME/conf/context.xml. In this case, however, I don't know
what new objects I'll be binding into the Context until run-time, and it
will change frequently, so placing such declarations there in a static
manner will not work.
Is there an API I can use to programmatically create global resource
links as one would normally put in $CATALINA_HOME/conf/context.xml, or
to somehow otherwise access the global Tomcat Context bindings from my
hosted applications?
Thanks,
Christopher Simons
Pittsburgh, PA
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org