org.apache.wicket.Application.onDestroy()
On Tue, Jul 26, 2011 at 4:34 AM, eugenebalt eugeneb...@yahoo.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
1. I would recommend to use a connection pool, e.g. 'bonecp', 'c3p0' or 'dbcp'
instead of a single connection. Using a single connection that stays connected
to the db is a bad thing. You usually have to restart your web application when
the database gets restarted (or goes offline for some
@wicket.apache.org
Subject: Re: How to Catch WebApplication's Destroy()?
org.apache.wicket.Application.onDestroy()
On Tue, Jul 26, 2011 at 4:34 AM, eugenebalt
eugeneb...@yahoo.com wrote:
To clarify, this is not per-request, it should be per-application.
I have a static Connection object
:21
To: users@wicket.apache.org
Subject: Re: How to Catch WebApplication's Destroy()?
org.apache.wicket.Application.onDestroy()
On Tue, Jul 26, 2011 at 4:34 AM, eugenebalt
eugeneb...@yahoo.com wrote:
To clarify, this is not per-request, it should be per-application.
I have a static
I have a DB connection that I initialize on WebApplication.init(), which I
override.
At the end, I need to close the DB connection in something like a destroy
method for the app, but I couldn't find any overridable method for that. I
tried overriding sessionDestroy() but it's not getting called
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.
--
View
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
what I need
from database and do all DB stufs - open connection, run SQL, close
connection.
-Original Message-
From: eugenebalt [mailto:eugeneb...@yahoo.com]
Sent: Tuesday, 26. July 2011 03:12
To: users@wicket.apache.org
Subject: How to Catch WebApplication's Destroy()?
I have a DB
are you prohibited from using a DI framework such as guice or spring? it
can help you manage your object scope and lifecycle
On 26 Jul 2011 07:41, Miroslav F. mir...@seznam.cz wrote:
Bad. Wicket application start when you deploy it into Tomcat (it's time when
WebApplication.init() is
executed)
to Catch WebApplication's Destroy()?
are you prohibited from using a DI framework such as guice or
spring? it can help you manage your object scope and lifecycle
On 26 Jul 2011 07:41, Miroslav F. mir...@seznam.cz wrote:
Bad. Wicket application start when you deploy it into Tomcat
(it's
10 matches
Mail list logo