Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Undeploying a web appl from a servlet?

Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic