You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Richard Wallis <R....@talis.com> on 2000/09/27 12:24:44 UTC
Finally
Is there any way to insert code in a jsp which will be called as part of the
finally statement in the generated _jspService() method?
I am finding that if a user of a .jsp generated web page clicks through to
another page, before the first page completes its output, the processing of
that first page stops before it reaches my clean up code at the end.
As my clean up code includes releasing JDBC connections back into a
connection pool, I end up with a build up of non-released connections.
I have tried using jspDestroy() and finalize(), but as Tomcat keeps at least
one reusable instance of each used page class in its cache, these methods do
not get called very often.
Richard
------------------------------------------------------------------------
Richard Wallis
Talis Information Ltd.
Birmingham Research Park
Vincent Drive
Birmingham Phone: +44 (0)121 471 1179
B15 2SQ Fax: +44 (0)121 472 0298
England E-Mail: R.J.Wallis@talis.com
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
_____________________________________________________________________
Any views or personal opinions expressed within this email may not be those of Talis Information Ltd.
The content of this email message and any files that may be attached are confidential, and for the usage of the intended recipient only. If you are not the intended recipient, then please return this message to the sender and delete it. Any use of this e-mail by an unauthorised recipient is prohibited.