Why not use a ServletContextListener http://download.oracle.com/javaee/5/api/javax/servlet/ServletContextListener.html
Instead of using wicket for that? On Mon, Jul 25, 2011 at 10:34 PM, eugenebalt [via Apache Wicket] < ml-node+3694614-1673249323-65...@n4.nabble.com> wrote: > To clarify, this is not per-request, it should be per-application. > > I have a static Connection object in my WebApplication, and it's used for > all transactions in the app. I construct it initially in the init(), and was > just wondering where to close the Connection at the end of the app. > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://apache-wicket.1842946.n4.nabble.com/How-to-Catch-WebApplication-s-Destroy-tp3694556p3694614.html > To start a new topic under Apache Wicket, email > ml-node+1842946-398011874-65...@n4.nabble.com > To unsubscribe from Apache Wicket, click > here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1842946&code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=>. > > -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-Catch-WebApplication-s-Destroy-tp3694556p3694654.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org