title: Force Tomcat 6 to Stop on Windows
body: <p>We're using tomcat 6 to serve an activeMQ based Java backend for our application.  Recently I've been looking into how to implement a Continuous Deployment solution for the server side components of this product.  </p>
  
  <p>What I want to do is have our Continuous Ingegration server: <br />
  1. Throw the MSI installer onto a virtual machine <br />
  2. <strong>Stop Tomcat</strong> <br />
  3. Run the installer <br />
  4. Start Tomcat <br />
  5. Test that the server is running <br /></p>
  
  <p>I can do all of this except for the shutdown Tomcat step. The problem That I'm facing is that Tomcat is not always graceful in it's shutting down.  So I need to be able to force the server to shutdown.  I am open as to weather or not to run Tomcat as a service.<br>
  Does anyone have any information on how to shutdown Tomcat 6 on Windows?  I have seen some documentation on using the <code>-force</code> parameter, but this has been patchy and aimed at Unix systems. </p>
  
  <p>Any information that you can provide would be greatly appreciated.  </p>
  
  <hr>
  
  <p>Edit: Tomcat may not be the only Java process running on the machine.  </p>