wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Undeploying a web appl from a servlet?
 
Similar Threads
Application level communication
Invoke other program from servlet
Calling Servlets in different Web applications?
Access Java Web Start using Servlets
Accessing servlet