Hi Jorg,

> -----Message d'origine-----
> De: Jorg Heymans [mailto:[EMAIL PROTECTED]
> Date: mercredi, 5. novembre 2003 15:33
> �: [EMAIL PROTECTED]
> Objet: Re: servlet destroy() method in Cocoon
> 
> 
> <extremely-off-the-top-of-my-head>
> 
> Doesn't the servlet specification allow to redirect to a page when 
> certain exceptions are thrown? 

Servlet specification allow to define a destroy() method which is executed after the 
servlet has been taken out of service.

My problem is where to define this method in Cocoon?


Regards
Sylvain



>If a request is interrupted 
> you will get 
> something like
> java.net.SocketException: Software caused connection abort: 
> socket write 
> error
>          at java.net.SocketOutputStream.socketWrite0(Native Method)
>          at 
> java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
>          at 
> java.net.SocketOutputStream.write(SocketOutputStream.java:136)
>          at 
> org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutp
> utBuffer.doWrite(InternalOutputBuffer.java:668)
> .....
> 
> Another thing might be to use try and propagate this error 
> (don't ask me 
> how) through to  the <map:handle-errors> section of your sitemap.
> 
> I guess trying to catch this exception is key here
> 
> </extremely-off-the-top-of-my-head>
> 
> [EMAIL PROTECTED] wrote:
> 
> > Hello,
> > 
> > Is there a location in Cocoon to define a destroy() method 
> like in Servlet programming?
> > 
> > The goal is to close a database connection when the user 
> press the "stop" button on the browser during an execution.
> > 
> > Is someone has an experience?
> > Thanks
> > Sylvain
> > 
> > 
> ---------------------------------------------------------------------
> > 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]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to