permaculture playing cards*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: making tomcat service depend on mySQL service
 
Similar Threads
How to auto start a process when Linux starts or reboot?
Problem with continuation of tomcat service on WEB SERVER
Installing mysql on Linux
Tomcat service on Windows 7 - Cannot access web app from remote computer
unable to open the service tomcat 7,