File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
Invoke other program from servlet
Access Java Web Start using Servlets
Calling Servlets in different Web applications?
Accessing servlet
Application level communication