Is it OK to start threads in a servlet, and have each of the threads invoke
EJB's?

Thanks
Phil

-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of parikshit
Sent: 01 August 2000 13:10
To: [EMAIL PROTECTED]
Subject: Re: threads in startup class ...


Hi,
It is ok to spawn threads from start up classes. But we cannot spawn threads
from EJBs.
Parikshit

----- Original Message -----
From: Dowd, Brian <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 01, 2000 4:55 PM
Subject: threads in startup class ...


HI All,
    I've got a startup class which spawns a low priority thread and sleeps &
wakes up
every hour.  Is this OK behaviour ?  I know that one *shouldn't* create &
use threads
in WL (4.5.1), but does this apply to startup classes ??

   Another option is to have an infinite loop in my startup class which
sleeps for the
time and then wakes up .... this assumes that WL instantiates & runs its
startup
classes in a separate thread ... which I don;t think it does ?

Can someone shed some light on this  ????

Tanx in Advance.
Brian.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Any opinions expressed in this email are those of the individual and not necessarily 
Knowledge Management Software plc.  This email and any files transmitted with it are 
confidential and solely for the use of the intended recipient.
If you are not the intended recipient or the person responsible for delivering to the 
intended recipient, be advised that you have received this email in error and that any 
use is strictly prohibited.  If you have received this email in error please notify 
the Systems Manager by telephone on 44 (0) 161 227 9009

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to