We use tomcat 6 to run Java based on activeMQ for our application. I recently learned how to implement a continuous deployment solution for components on the server side of this product.
What I want to do is our continuous integration server:
1. Throw the MSI installer to the virtual machine.
2. Stop Tomcat
3. Run the installer
4. Launch Tomcat
5. Verify that the server is running.
I can do all this except the Tomcat completion stage. The problem I am facing is that Tomcat does not always gracefully close it. Therefore, I need to make the server shut down. I am open to the weather or do not start Tomcat as a service. Does anyone have any info on how to close Tomcat 6 on Windows? I saw some documentation on using the -force
, but this was patchy and aimed at Unix systems.
Any information you can provide will be greatly appreciated.
Edit: Tomcat may not be the only Java process running on a machine.
Klee source share