Thread lifetimes/bean lifetimes need to be completely under the control
of the
server to get the full benefits of EJB instance pooling etc.
Having your own threads inside a bean would prevent this.

Nitin Borwankar,
Borwankar Research Inc.
[EMAIL PROTECTED]

Nitin Sood wrote:
>
> > 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.
> > Nope, not allowed. Correctly implemented servers wont let you.
> >
> > Do it outside of the bean.
>
> You mean put the threaded code in a method outside of the bean and then
> call that method in the beans business method. Why did the EJB spec
> designers not allow threads in a 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".

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