You should make the effort to remove the dependency of the core action on the request and response objects. Just retrieve the data you need from the request and response and cache them so that they'll be available for the duration of your long process. I'm hoping that when you call it "core action", you don't mean that the object doing the processing is a Struts Action subclass. If it is, I suggest that you use a POJO instead, with fields to hold the request data you need.
Hubert On 5/27/05, Jürgen Liesche <[EMAIL PROTECTED]> wrote: > Hi all, > > we have a struts action which runs in some cases very long (> 1min). In this > case, a firewall between client and server cuts the connection due to > inactivity. To avoid this timeout, we execute the core action in a thread, > while the wrapper action polls the result of the action thread. If the result > (the forward object) comes in time everything is ok and we forward to the > next page. If the action takes too much time we forward to a refresh page, > just before the firewall timeout will be activated. This refresh page calls > the wrapper action again, and polls for a result of the core action thread > until it is available. The problem is, that the core action uses the request > and response objects. But these objects will be invalid, if the refresh page > calls the wrapper action again and therefore the core action pukes. > We use struts 1.1 and tomcat 4.1.x > Does anybody have an idea, how to solve these problem? > Thanks in advance for help. > __________________________________________________________ > Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min. > weltweit telefonieren! http://freephone.web.de/?mc=021201 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]