RE: A simple question about creating a thread in Tomcat app

2006-02-22 Thread Sethuraman, Prabhu \(Cognizant\)
, 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

Re: A simple question about creating a thread in Tomcat app

2006-02-22 Thread Artur Rataj
I had some problems with the thread run in init(), that I described in the thread `STrange problem with a thread made in Servlet.init()'. Now I use the listeners with both startup/shutdown of the thread. Best regards, Artur - To

Re: A simple question about creating a thread in Tomcat app

2006-02-22 Thread Artur Rataj
Thanks for help, Artur - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: A simple question about creating a thread in Tomcat app

2006-02-22 Thread David Smith
Can you? Yes. The method depends on your version of tomcat. Older tomcat (sorry, I don't remember what version) versions used to require you to add 1 to a servlet definition and have the servlet do this work for you. Newer tomcats (at least version 5.0 and 5.5, don't know about 4.1.x) allo

Re: A simple question about creating a thread in Tomcat app

2006-02-22 Thread Edoardo Panfili
Artur Rataj ha scritto: 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. can you use somethings like: ServerInit argentaroggia.servizi.ServerInit 1

A simple question about creating a thread in Tomcat app

2006-02-22 Thread Artur Rataj
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 - To unsubscribe, e