Jon Stevens wrote:
>
> on 5/21/01 10:41 AM, "Darren Gilroy" <[EMAIL PROTECTED]> wrote:
>
> > Hi -
> >
> > I am using Velocity from Turbine (extending VelocityScreen), and adding to
> > my context from the doBuildTemplate() method.
> >
> > Now, I need to close some connections after the Velocity template is
> > executed. I need to close the result set and release the connection back to
> > the pool after the page request.
> >
> > Any ideas / sample code for how to handle this?
> >
> > Thanks!
> > -best-darr-
>
> The best thing is to not put a ResultSet into the context in the first
> place.
>
And if you refuse to listen to that advise, you can clean up here:
/**
* This method can be overridden to write code that executes when
* the template has been built (called from a finally clause, so
* executes regardless of whether an exception is thrown or not)
*/
protected void doPostBuildTemplate( RunData data )
john mcnally
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]