James Lewis wrote:
always perform such a lookup successfully, but when I try from a
ContextListener contextInitialized method it fails: the same code WILL
NOT FAIL contextDestroyed !!!
Hmmm, odd. This is *exactly* what I do pretty much. I have a
LifeCycleListener specified in the
Hi you all,
I'm trying to build application wide variable from a
ServletContextListener under Tomcat 4.1.24.
Some of the variables are built with data read from a database.
I've been able to successfully define the JNDI datasources and to list
them in the contextInitialized method
but I needed
- define the resource in server.xml (this is a little 'limitating' for me)
- deploy the applications in unpacked format (i.e. not from a war file:
this is quite limiting, however)
Yep, not good to stick them in server.xml.
Your application.xml file containing your resources should be in the
James Lewis wrote:
- define the resource in server.xml (this is a little 'limitating' for me)
- deploy the applications in unpacked format (i.e. not from a war file:
this is quite limiting, however)
Yep, not good to stick them in server.xml.
Your application.xml file containing your
always perform such a lookup successfully, but when I try from a
ContextListener contextInitialized method it fails: the same code WILL
NOT FAIL contextDestroyed !!!
Hmmm, odd. This is *exactly* what I do pretty much. I have a
LifeCycleListener specified in the webapps/app/WEB-INF/web.xml like
Subject: RE: [tomcat] RE: JNDI datasource non available in
ServletContextListener.contextInitialized
always perform such a lookup successfully, but when I try from a
ContextListener contextInitialized method it fails: the same code
WILL
NOT FAIL contextDestroyed !!!
Hmmm, odd. This is *exactly* what