This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Tomcat and the fly likes making tomcat service depend on mySQL service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "making tomcat service depend on mySQL service" Watch "making tomcat service depend on mySQL service" New topic
Author

making tomcat service depend on mySQL service

Ikram Soomro
Ranch Hand

Joined: Oct 20, 2001
Posts: 42
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

Joined: May 29, 2003
Posts: 1258
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.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
 
GeeCON Prague 2014
 
subject: making tomcat service depend on mySQL service