Hi,

You are not allowed to create threads within the Bean code.
If you do,(assuming that a container implementation does not
prevent you) then the container will not be able to manage
the bean lifecycle & you may get unpredictable results. And
needless to say, such beans may not be portable across
server vendors.


-Harish Prabandham
Enterprise Server Group.

> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Nitin Sood
> Sent: Tuesday, August 10, 1999 12:35 PM
> To: [EMAIL PROTECTED]
> Subject: EJB and threads
>
>
> Can one use threads in a business method of an EJB. For example, can I
> have the following peice of code inside a business method.
>
>         Thread thread1 = new Thread(instance1);
>         Thread thread2 = new Thread(instance2);
>
>         thread1.start();
>         thread2.start();
>
> Nitin
>
> ==================================================================
> =========
> 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".

Reply via email to