Re: How to run a thread on app startup --- SOLVED

2006-04-04 Thread Bruce McGuire
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

Re: How to run a thread on app startup

2006-04-03 Thread Bruce McGuire
- 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

RE: How to run a thread on app startup

2006-04-03 Thread Jim Freeby
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

RE: How to run a thread on app startup

2006-04-03 Thread Asensio, Rodrigo
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

RE: How to run a thread on app startup

2006-04-03 Thread Asensio, Rodrigo
[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

Re: How to run a thread on app startup

2006-04-03 Thread Bruce McGuire
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

Re: How to run a thread on app startup

2006-04-03 Thread Bruce McGuire
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

RE: How to run a thread on app startup

2006-04-03 Thread Asensio, Rodrigo
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

RE: How to run a thread on app startup

2006-04-03 Thread Tim Lucia
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