Using Servlet Context listener would be the best and simple solution. THere are articles which describe step by step implementation of the solution. Let us know if you are not able to locate this.
Prabhu S -----Original Message----- From: Artur Rataj [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 9:16 AM To: Tomcat Users List Subject: A simple question about creating a thread in Tomcat app Hello! I would like, just after tomcat starts, to create a new thread. Where can I put the code that starts it? I do not want to wait with starting the thread until some servlet is needed. Best regards, Artur This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]