|
From: Chuck S. <ch...@co...> - 2003-08-09 20:00:06
|
I would like to use JSW to manage an Apache/Tomcat config. Tomcat and Apache are configured to use the JK2 connector so that Apache is the HTTP/HTTPS frontend and Tomcat is application server backend. There is a dependency to start Tomcat before Apache, and likewise shutdown Apache then Tomcat. I read the different integration methods and none seem to specifically address this issue on a Linux/Unix platform. I could hack this into a WrapperListener class using Runtime.exec to start Apache and Runtime.addShutdownHook to stop Apache. Is this the recommended method of handling service dependencies on Linux/Unix? Assuming the answer is yes, I still have to devise a means of end-to-end monitoring to ensure that Apache and the JK2 connector are functioning as well as the Tomcat JVM. I can script a pinger to do this, but how would I integrate it with JSW's monitor? BTW, this is a great tool. I don't know how many times I have had to script monitors to do similar things. Using JSW I should not have to do so again. Thanks, Chuck |