Hi,
Use ServletContext init parameters (as opposed to attributes).  Those
are bound for your contextInitialized event and anything after it.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Dennis Dai [mailto:[EMAIL PROTECTED]
>Sent: Friday, May 07, 2004 4:13 AM
>To: Tomcat Users List
>Subject: Passing init parameters to event listener
>
>Hi all,
>
>I'd like to pass init parameters to event listener (in my case, it's
>session
>listener) instead of hard coding those parameters. But event listeners
do
>not
>support init parameters like filters do.
>
>I know that I can get SetvletContext from events (thus getting the
>ServletContext attributes for the context), but that'll be at time when
>event
>happens, not listener init time.
>
>Any better way?
>
>Thanks,
>
>Dennis
>
>---------------------------------------------------------------------
>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