Re: looking for insight on invoking Thread.sleep() from a tomcat servlet
On Sun, May 29, 2005 at 03:08:28PM -0700, Clark O'Brien wrote: : Can someone provide insight on the adverse affects of : invoking sleep() from a servlet. It's more a question of, why would you want to invoke sleek() from a servlet? : I understand that the : J2EE explicitly forbids invoking sleep from within a : servlet Well, then, don't do it. When you have a case that leaves you no choice but to break the standards, then do it. Otherwise, don't. -QM -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan -- http://www.JxRef.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
looking for insight on invoking Thread.sleep() from a tomcat servlet
Can someone provide insight on the adverse affects of invoking sleep() from a servlet. I understand that the J2EE explicitly forbids invoking sleep from within a servlet and it is not hard to figure out this could cause problems given that a single tomcat thread may service multiple requests. But I still see applications that break this rule so I would like to hear ideas on this. Clark __ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: looking for insight on invoking Thread.sleep() from a tomcat servlet
Clark O'Brien wrote: Can someone provide insight on the adverse affects of invoking sleep() from a servlet. I understand that the J2EE explicitly forbids invoking sleep from within a servlet and it is not hard to figure out this could cause problems given that a single tomcat thread may service multiple requests. But I still see applications that break this rule so I would like to hear ideas on this. I haven't noticed any problem here. Our in house JDBC conn pool used thread.sleep as well as a lot of other code. Kevin -- Use Rojo (RSS/Atom aggregator)! - visit http://rojo.com. See irc.freenode.net #rojo if you want to chat. Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html Kevin A. Burton, Location - San Francisco, CA AIM/YIM - sfburtonator, Web - http://peerfear.org/ GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]