This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes Undeploying a web appl from a servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Undeploying a web appl from a servlet?" Watch "Undeploying a web appl from a servlet?" New topic
Author

Undeploying a web appl from a servlet?

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
We have developped a web application with a "start-up" servlet that reads an xml properties file and creates a connection pool. But it is possible that this servlet fails in his task for differents reasons (dbConnection disable, DTD check failed.....).
In this Case I would like not to start the application and only log the problem. I thought I could use System.exit(-1) but it is too drastic for me. Is there a way to undeploy the application on the web Server from this servlet?
------------------
Benjamin l´┐Żonard
evisor
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Undeploying a web appl from a servlet?