This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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
 
jQuery in Action, 2nd edition
 
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