I configured my single tomcat to host 2 services at different connector port like this :-
<!-- WebApp 1--> <Service name="webapps1"> <Connector port="7001" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" /> <Engine name="receiver1" defaultHost="localhost"> <Host name="localhost" appBase="webapps1" unpackWARs="true" autoDeploy="true"> </Host> </Engine> </Service> <!-- End of WebApp 1--> <!-- WebApp 2--> <Service name="webapps2"> <Connector port="7002" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" /> <Engine name="receiver2" defaultHost="localhost"> <Host name="localhost" appBase="webapps2" unpackWARs="true" autoDeploy="true"> </Host> </Engine> </Service> <!-- End of WebApp 2--> 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.
That means what I want is to accept request over 7002, meanwhile I deploy and restart 7001 connector without actually shutting down tomcat process.
How can I achieve this..? Any help is really appreciated.
Thanks.