Possible to execute code on deploy/undeploy of web app?

Is there any way to specify code to be executed when a web application is deployed and undeployed to an application server? I'm using Sun Java System Application Server Platform Edition 9.0 Update 1.Thanks.Glenn
[233 byte] By [glenn374a] at [2007-11-27 2:13:07]
# 1
Would init and destroy do the trick for yo... http://java.sun.com/products/servlet/2.5/docs/servlet-2_5-mr2/javax/servlet/Servlet.htmlvbk
vkraemera at 2007-7-12 2:08:15 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
That's the kind of thing I'm looking for, but I'm deploying and undeploying a web service. Are there any equivalent web service methods?Thanks.Glenn
glenn0374a at 2007-7-12 2:08:16 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...