You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Trumml <Ma...@systema.info> on 2007/07/04 11:49:11 UTC

Initialize something once when deploying war file

I'm using JBoss 327 with Tomcat 5.
My applications running inside JBoss (Tomcat) need some kind of "runtime
initializing". For example when a MBean is deployed, inside the start()
method my runtime will be initialized.
How can I achieve this with a WAR file? I want to call a method 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.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Initialize something once when deploying war file

Posted by David Delbecq <de...@oma.be>.
use a <listener/> 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 when a MBean is deployed, inside the start()
> method my runtime will be initialized.
> How can I achieve this with a WAR file? I want to call a method once when my
> WAR file is deployed.
>   


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org