I tried Thread.sleep() inside my stateless session beans create method.It works fine.
Basically my create method calls my entity to insert a row. But it was only single instance i tried. I guess will make a problem.When u try to access the instance concurrently. Thanks and Regards Saminathan ----- Original Message ----- From: "Ashwani Kalra" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 24, 2002 10:17 AM Subject: Re: Thread.sleep() > Since you are trying to simulate. You can use this method even though its > against the practise. It depends on your Appserver if it allows or not. You > can then remove it after testing. > > Thanks > Ashwani > > > ----- Original Message ----- > From: "Jay Wright" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, April 24, 2002 9:55 AM > Subject: Thread.sleep() > > > > So, can you use Thread.sleep() in an EJB container or even a servlet > > container? I realize that it's unwise to do threaded programming in these > > environments, but I'm unclear on whether or not Thread.sleep() is safe or > > not. > > > > More specifically, I wanted to throw it in a Message Driven Bean for some > > performance testing (simulating long method calls). > > > > Jay > > > > > =========================================================================== > > 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". =========================================================================== 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".
