Write a class that implements a ServletContextListener and then add it
to your web.xml as a listener. It creates a hook for startup as well as
shutdown. I use this to build my own database pool and store it as an
attribute of the servlet context for later.
--David
Trumml wrote:
I'm using J
use a inside web.xml. They get notified when starting and
stopping webapplication
En l'instant précis du 04/07/07 11:49, Trumml s'exprimait en ces termes:
> I'm using JBoss 327 with Tomcat 5.
> My applications running inside JBoss (Tomcat) need some kind of "runtime
> initializing". For example wh
od once when my
WAR file is deployed.
--
View this message in context:
http://www.nabble.com/Initialize-something-once-when-deploying-war-file-tf4023471.html#a11428025
Sent from the Tomcat - User mailing list archive at Nabble.com.
-
od once when my
WAR file is deployed.
--
View this message in context:
http://www.nabble.com/Initialize-something-once-when-deploying-war-file-tf4023470.html#a11428024
Sent from the Tomcat - User mailing list archive at Nabble.com.
-