, 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
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
Thanks for help,
Artur
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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