And another option ofcourse would be to pool your database connections and just time them out and destroy them when they haven't been returned to the pool after x minutes

Jorg Heymans wrote:

<extremely-off-the-top-of-my-head>

Doesn't the servlet specification allow to redirect to a page when certain exceptions are thrown? 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$OutputStreamOutputBuffer.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