Howdy,
FYI, I do the same thing: JNDI calls from a ServletContextListener's
contextInitialized() event -- no problems.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: James Lewis [mailto:[EMAIL PROTECTED]
>Sent: Monday, June 09, 2003 11:43 AM
>To: Tomcat Users List
>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 I do pretty much. I have a
>LifeCycleListener specified in the webapps/<app>/WEB-INF/web.xml like
this:
>
>  <listener>
>
<listener-class><my.foo.bar.package>.LifeCycleListener</listener-
>class>
>  </listener>
>
>and then in the contextInitialized method of the LifeCycleListener I do
a
>bunch of calls to jndiContext.lookup().
>
>Hmm, hmmm, hmmm. You are correctly specifying the listener in web.xml?
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to