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

its not juse unwise, its against the spec.... but thats not what you're asking...

> More specifically, I wanted to throw it in a Message Driven Bean for some
> performance testing (simulating long method calls).

in JBoss we've done similar for the same reasons, and it hasn't complained.  The only 
thing I'd say to watch out for is timeouts.

hth
dim


>
> 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".

Reply via email to