title: Tomcat with multiple services
body: <p>I configured my single tomcat to host 2 services at different connector port like this :-</p>
  
  <pre><code>&lt;!-- WebApp 1--&gt;
  &lt;Service name="webapps1"&gt;
    &lt;Connector port="7001" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" 
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" /&gt;
    &lt;Engine name="receiver1" defaultHost="localhost"&gt;
      &lt;Host name="localhost"  appBase="webapps1" unpackWARs="true"
            autoDeploy="true"&gt;
      &lt;/Host&gt;
    &lt;/Engine&gt;
  &lt;/Service&gt;
  &lt;!-- End of WebApp 1--&gt;
  
  &lt;!-- WebApp 2--&gt;
  &lt;Service name="webapps2"&gt;
    &lt;Connector port="7002" maxThreads="150" minSpareThreads="25"
               maxSpareThreads="75" enableLookups="false" redirectPort="8443"
               acceptCount="100" connectionTimeout="20000"
               disableUploadTimeout="true" /&gt;
    &lt;Engine name="receiver2" defaultHost="localhost"&gt;
      &lt;Host name="localhost"  appBase="webapps2" unpackWARs="true"
            autoDeploy="true"&gt;
      &lt;/Host&gt;
    &lt;/Engine&gt;
  &lt;/Service&gt;
  &lt;!-- End of WebApp 2--&gt;
  </code></pre>
  
  <p>Now, my concern is if I stop tomcat  both the services will be stopped, but what I want is to stop/start  webapp1 only, So that I can make changes and restart only webapp1 without affecting webapp2.</p>
  
  <p>That means what I want is to accept request over 7002, meanwhile I deploy and restart 7001 connector without actually shutting down tomcat process.</p>
  
  <p>How can I achieve this..? Any help is really appreciated.</p>
  
  <p>Thanks.</p>