Re: slowing down action execution time

2007-07-17 Thread Leon Rosenberg
We actually didnt provide you any solution, but its pretty hard, since you haven't provided any details :-) There are many possibilities, IP-Throttle, session-based throttle or a mechanism which manages the overall load on the server. Without knowing what you are doing, providing even a hint is p

Re: slowing down action execution time

2007-07-17 Thread Leon Rosenberg
I think you misunderstand things a bit here (or maybe the spec wasnt clear, as often) servlet spec 2.5 (the current one, and the one tomcat 6 is implementing) states in SRV.14.2.2 Web Application Environment (9.11 now merily point to this chapter): "Java EE defines a naming environment that allo

RE: slowing down action execution time

2007-07-17 Thread Al Sutton
called before the delay has completed you redirect the user to Page 2 instead of Page 3. Hope this is useful, Al. -Original Message- From: Ing. Andrea Vettori [mailto:[EMAIL PROTECTED] Sent: 17 July 2007 15:28 To: Struts Users Mailing List Subject: Re: slowing down action execution time

Re: slowing down action execution time

2007-07-17 Thread Ing. Andrea Vettori
thanks to all I'll try... Il giorno 17/lug/07, alle ore 16:38, Antonio Petrelli ha scritto: 2007/7/17, Ing. Andrea Vettori <[EMAIL PROTECTED]>: I don't remember where but I think I read somewhere that's not possibile to call Thread methods inside a servlet container. Anyone can confirm this

Re: slowing down action execution time

2007-07-17 Thread Antonio Petrelli
2007/7/17, Leon Rosenberg <[EMAIL PROTECTED]>: you can create threads in tomcat. It's not recommended unless you know what you are doing, but you can. It seems that you are right... and not :-) You can create threads in a servlet container, but it is not portable. As stated in Servlet 2.4 sp

Re: slowing down action execution time

2007-07-17 Thread Leon Rosenberg
On 7/17/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: 2007/7/17, Ing. Andrea Vettori <[EMAIL PROTECTED]>: > I don't remember where but I think I read somewhere that's not > possibile to call Thread methods inside a servlet container. > > Anyone can confirm this ? AFAIK you cannot create any t

Re: [OT] Re: slowing down action execution time [Friday]

2007-07-17 Thread Leon Rosenberg
On 7/17/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: 2007/7/17, Wesley Wannemacher <[EMAIL PROTECTED]>: > > I've found the most effective way to slow down the execution time is ask > an intern to "optimize" it... Hey it's not friday, you broke the rule! ;-) yeah, but it was funny :-) A

[OT] Re: slowing down action execution time [Friday]

2007-07-17 Thread Antonio Petrelli
2007/7/17, Wesley Wannemacher <[EMAIL PROTECTED]>: I've found the most effective way to slow down the execution time is ask an intern to "optimize" it... Hey it's not friday, you broke the rule! ;-) Antonio

RE: slowing down action execution time [Friday]

2007-07-17 Thread Wesley Wannemacher
I've found the most effective way to slow down the execution time is ask an intern to "optimize" it... /zing -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 17, 2007 10:38 AM To: Struts Users Mailing List Subject: Re: slow

Re: slowing down action execution time

2007-07-17 Thread Antonio Petrelli
2007/7/17, Ing. Andrea Vettori <[EMAIL PROTECTED]>: I don't remember where but I think I read somewhere that's not possibile to call Thread methods inside a servlet container. Anyone can confirm this ? AFAIK you cannot create any thread in a Java EE environment (though products like Quartz do

Re: slowing down action execution time

2007-07-17 Thread Ing. Andrea Vettori
I need to initially slow down and after a few minutes completely block access to aa site to logged-users and/or remote ip addresses that reads too many pages too fast. It's something like controlling that the site is not mirrored. I don't remember where but I think I read somewhere that's no

Re: slowing down action execution time

2007-07-17 Thread Leon Rosenberg
actually you named it. Thread.sleep(). only for debugging purposes of course :-) regards leon On 7/17/07, Ing. Andrea Vettori <[EMAIL PROTECTED]> wrote: Hi what's the best method to slow an action execution time ? Something like Thread.sleep(...). Thanks ! -- Ing. Andrea Vettori Consulente p

slowing down action execution time

2007-07-17 Thread Ing. Andrea Vettori
Hi what's the best method to slow an action execution time ? Something like Thread.sleep(...). Thanks ! -- Ing. Andrea Vettori Consulente per l'Information Technology - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi