aspose file tools*
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
 
jQuery in Action, 2nd edition
 
subject: making tomcat service depend on mySQL service