Re: Define Global Timeout [S2]

2010-01-12 Thread Gabriel Belingueres
I don't know if you can make this work. IIRC, interceptor instances are created one by interceptor stack, so the same instance is shared by all requests that go through that stack. This makes the interceptor (at best) serialize all requests in its wait-notify cycle. However, I think it is buggy si

Re: Define Global Timeout [S2]

2010-01-12 Thread Jorge Sousa
Hi, I can´t change the Tomcat, and i don´t think that change the Tomcat will help me to accomplish the feature that i want. My action does several call's to a external API, and i want to ensure that all the call's won't exceed the time that i defined in the timeout. Changing the Tomcat, will

Re: Define Global Timeout [S2]

2010-01-11 Thread Brian Thompson
Honestly, this sounds like something that should be handled at the application server level. What server are you using? If you're using Tomcat via the Tomcat connector, take a look at reply timeouts on [1]. If you're not using Tomcat, I'm sure there are similar options in other app servers. -Br

Define Global Timeout [S2]

2010-01-11 Thread Jorge Sousa
Hi, First of all sorry for my bad english :) I need to implement a feature in my application, that will enable me to define the timeout of every request. I tried to create a Interceptor and put the main thread on wait, while other 2 threads, one will handle the time, and the other will make the