java - How to deploy 2 war files to one instance of Tomcat7 on different ports? -
in netbeans, possible deploy 2 different war files 2 different ports in 1 tomcat instance ?
i know can manually copying , pasting individual war files respective appbase folders or using copy-maven-plugin. possible in netbeans ?
here server.xml file configuration
<service name="app1"> <connector port="8080" protocol="http/1.1" connectiontimeout="20000" redirectport="8443" /> <engine name="catalina" defaulthost="localhost"> <realm classname="org.apache.catalina.realm.lockoutrealm"> <realm classname="org.apache.catalina.realm.userdatabaserealm" resourcename="userdatabase"/> </realm> <host name="localhost" appbase="webapps8080" unpackwars="true" autodeploy="true"/> </engine> </service> <service name="app2"> <connector port="8081" protocol="http/1.1" connectiontimeout="20000" redirectport="8444" /> <engine name="catalina" defaulthost="localhost"> <realm classname="org.apache.catalina.realm.lockoutrealm"> <realm classname="org.apache.catalina.realm.userdatabaserealm" resourcename="userdatabase"/> </realm> <host name="localhost" appbase="webapps8081" unpackwars="true" autodeploy="true"/> </engine> </service>
Comments
Post a Comment