As previous posters have aleady pointed ut, it is expressly forbidden in the
EJB spec to create a Thread from within an EJB. It is irrelevant whether the
Thread is created directly or indirectly (as in your case).

Having said that, some app servers appear to allow Thread creation (at least
in development mode), though I have generally found that the Threads do not
have the application context of the their parent.


William

> -----Original Message-----
> From: Milind Kulkarni [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 24 July 2002 3:00
> To: [EMAIL PROTECTED]
> Subject: Re: Is Exec() allowed in EJB
>
>
> Hi All,
>
> We have a similar situation in our project.  Since exec()
> method of Runtime
> object spawns a new process we have developed a utility class
> outside the
> stateless bean. We are calling a method of this call from the
> stateless
> EJB. We are using exec()  method for invoking Oracle Reports
> executable
> from the command prompt.
>
> This strategy seems to be working in our case but we are
> still in the early
> testing phase and we are still to do any concrete load
> testing. We are not
> very sure whether this is the right strategy. Request you all
> to comment on
> this strategy.
>
>
> Thanks for your time !!
>
> Regards,
> Milind
>
> ==============================================================
> =============
> 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