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

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

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