Hello.
My thanks to everyone for their assistance. The ServletContextListener
works just fine to run my thread in the background when tomcat starts up
and closes.
Thanks very much.
Bruce.
-
To unsubscribe, e-mail: [EMAIL PR
-
From: Asensio, Rodrigo [mailto:[EMAIL PROTECTED]
Sent: Monday, April 03, 2006 12:51 PM
To: Tomcat Users List
Subject: RE: How to run a thread on app startup
I didn't use ServletContextlistener beause my inner classes don't know
anything about a servlet or http (MVC) and the co
TED]
Sent: Monday, April 03, 2006 3:46 PM
To: Tomcat Users List
Subject: Re: How to run a thread on app startup
Hello Rodrigo.
Thanks very much for the information.
Bruce.
Asensio, Rodrigo wrote:
>I figured out that the best way to do that is with a variable of type
>InheritableThreadLo
3:46 PM
To: Tomcat Users List
Subject: Re: How to run a thread on app startup
Hello Rodrigo.
Thanks very much for the information.
Bruce.
Asensio, Rodrigo wrote:
>I figured out that the best way to do that is with a variable of type
>InheritableThreadLocal that keeps a copy per thre
[EMAIL PROTECTED]
Sent: Monday, April 03, 2006 3:46 PM
To: Tomcat Users List
Subject: Re: How to run a thread on app startup
Hello Rodrigo.
Thanks very much for the information.
Bruce.
Asensio, Rodrigo wrote:
>I figured out that the best way to do that is with a variable of type
>Inheritabl
Hello Rodrigo.
Thanks very much for the information.
Bruce.
Asensio, Rodrigo wrote:
I figured out that the best way to do that is with a variable of type
InheritableThreadLocal that keeps a copy per thread.
We have 4 webapps over the same framework and all works in the same way.
The servlet
Hello Tim.
Thanks for the information.
Bruce.
Tim Lucia wrote:
Google for ServletContextListener
-Original Message-
From: Bruce McGuire [mailto:[EMAIL PROTECTED]
Sent: Monday, April 03, 2006 3:31 PM
To: users@tomcat.apache.org
Subject: How to run a thread on app startup
Hello
I figured out that the best way to do that is with a variable of type
InheritableThreadLocal that keeps a copy per thread.
We have 4 webapps over the same framework and all works in the same way.
The servlet creates a new instance of MyApplication and sets this
"singleton by thread" in the MyAppli
Google for ServletContextListener
-Original Message-
From: Bruce McGuire [mailto:[EMAIL PROTECTED]
Sent: Monday, April 03, 2006 3:31 PM
To: users@tomcat.apache.org
Subject: How to run a thread on app startup
> Hello.
>
> I need to have an application that has a seperate thread that load