Hey

Nitin Sood wrote:
> 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();

Nope, not allowed. Correctly implemented servers wont let you.

Do it outside of the bean.

/Rickard

===========================================================================
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