requestcycle.onendrequest() or requestcycle.detach() -igor
On Wed, Mar 10, 2010 at 6:54 PM, Apple Grew <[email protected]> wrote: > Hi Wicket users, > > I am using iBatis to handle my DB transactions. It recommends creating one > SqlSession object per http request, which can be reused multiple times for > that request. So I am exposing its reference from my custom RequestCycle, > where it is instantiated for the first time it is accessed. > > But, this sql session needs to be closed at end of all the transactions. For > that I need a reliable method to detect the end of the request cycle to > close this sql session. Any suggestions? > > Regards, > Apple Grew > my blog @ http://blog.applegrew.com/ > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
