Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

making tomcat service depend on mySQL service

 
Ikram Soomro
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to make tomcat service depend on mySQL service. If mySQL service is started than tomcat service should start otherwise it should not start.
I am using Windows 2000 Server.
What should I do?
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can write some big, bulky, nasty looking program that interfaces with Windows iterating through the in-memory processes, looking for mysql or one of its derivitive programs, and if it's there it starts Tomcat.

OR, you can just make sure MySQL is running when you start Tomcat.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic