Re: threads best practice

2002-09-09 Thread Ben Walding

I can't imagine why you'd have problems with your classloader.

In any event, I prefer to use context lifecycle events myself.

See http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html?page=1

You might want to post more details about your classloader problem as it 
is possibly only a minor problem.

skraaatch wrote:

hi all,
please could someone tell me what the best way to start and run a background
thread is in tomcat? i have a couple of tasks that need to run on a regular
basis to update my db. however, using an initialisation servlet to start the
threads seems to cause problems with the classloader.
many thanks,
aL.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


  





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: threads best practice

2002-09-09 Thread Michael Petres

What problems are caused with the class loader?

Michael Petres
~
InnovObjX Corp.
Web: www.innovobjx.com
Tel: 905-729-2235 x3
Fax: 905-729-2235
~

-Original Message-
From: skraaatch [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 08, 2002 3:13 PM
To: Tomcat Users List
Subject: threads best practice

hi all,
please could someone tell me what the best way to start and run a background
thread is in tomcat? i have a couple of tasks that need to run on a regular
basis to update my db. however, using an initialisation servlet to start the
threads seems to cause problems with the classloader.
many thanks,
aL.



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]