Marco Pas wrote:
>
> I am a little confused, in the EJB specs it states that within the
> EJB container it is never allowed to use threads.
>
> BUT....
>
> When a write a helper class, that is used by an EJB's (so no actual
> part of the EJB code). And this helper class makes use of threads,
> can you state that the helper class runs in the EJB container or
> not ? Is this allowed ?
>
> May i use threads in helper-classes ?
> Is the helper class managed by the EJB container ?
>
> Could anyone shed some light in this ?
Marco,
I suggest you look back in the archives
http://archives.java.sun.com/cgi-bin/wa?S1=ejb-interest
for references to this as it has been discussed often. The basic answer is yes
you can use threads in helper classes but there are some issues to take into
consideration.
Ian McCallion
Alexis Systems Limited
Romsey, UK
===========================================================================
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".