Thanks for the reply. On the same lines, do you think it is ok to spawn java threads in helper classes that are used by the EJB? Please note that the helper classes are part of the same "jar" that contains the EJB.
To re-state, what I want to know is this: The spec doesn't allow spawning threads from the bean classes, but is is it okay to use "synchronization" primitive and to spawn threads from the helper classes that are used by the beans? Thanks. Venki ----- Original Message ----- From: "Sven E. van �t Veer" <[EMAIL PROTECTED]> To: "Venki" <[EMAIL PROTECTED]> Sent: Tuesday, July 23, 2002 8:35 AM Subject: RE: Is Exec() allowed in EJB > FAIK, The ERB spec does not allow this. I see no reason however that helper > classes cannot do this. > > -----Original Message----- > From: A mailing list for Enterprise JavaBeans development > [mailto:[EMAIL PROTECTED]]On Behalf Of Venki > Sent: Tuesday, July 23, 2002 9:05 AM > To: [EMAIL PROTECTED] > Subject: Fwd: Is Exec() allowed in EJB > > > I am resending the message as I the email that I sent earlier > bounced back. I apologize for any inconvenience. > > ==========================Forwarded message========================== > > > Hi, > I have implemented a stateless session bean that calls a helper > class. I am spawn a process from a method in the helper class using > runtime.exec(). > Given that spawning threads is not allowed in the EJB server environment. > Is spawning processes okay? Is it not equivalent to spawning threads > which are nothing but light weight processes? > I need answers quite urgently. If anybody has experience in this > pls do let me know. Thanks. > > Venki > > ----- End forwarded message ----- > > =========================================================================== > 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". > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.377 / Virus Database: 211 - Release Date: 15/7/2002 > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.377 / Virus Database: 211 - Release Date: 15/7/2002 > =========================================================================== 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".
