Hi,
EJB spec says your BEANS cannot create new threads; however Weblogic's
startup class lies outside the realm of bean container, so its perfectly ok.
Incidentally, WL 4.5.1 and 5.1 does not have a ejbc compliance check (or
runtime check) for your beans spawning threads, so technically you can do
that as well!
Gene
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Dowd, Brian
Sent: Tuesday, August 01, 2000 4:25 AM
To: [EMAIL PROTECTED]
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".