Karaf 2.3.5+ I have a web based application running on Tomcat that I would like to migrate to Karaf. There are three instances of the application installed on one Tomcat server with each instance sharing a common war but configured in its own context. As shown below, The <Parameter> and <Envronment> tags in the context are used to customize each instance of the application. How do I migrate the application with three instance to one Karaf server?
** Instance 1: URL: http://example.com/app_instance_1 Context File: ${CATALINA_BASE}/conf/Catalina/localhost/app_instance_1.xml <Context path=“/app_instance_1” docbase=“{catalina.base}/wars/app.war”> <Parameter name=“config.param” value=“instance_1” override=“false”/> <Environment name=“config.name” value=“Instance 1” override=“false” type=“java.lang.String”/> </Context> ** Instance 1: URL: http://example.com/app_instance_2 Context File: ${CATALINA_BASE}/conf/Catalina/localhost/app_instance_2.xml <Context path=“/app_instance_2” docbase=“{catalina.base}/wars/app.war”> <Parameter name=“config.param” value=“instance_2” override=“false”/> <Environment name=“config.name” value=“Instance 2” override=“false” type=“java.lang.String”/> </Context> ** Instance 3: URL: http://example.com/app_instance_3 Context File: ${CATALINA_BASE}/conf/Catalina/localhost/app_instance_3.xml <Context path=“/app_instance_3” docbase=“{catalina.base}/wars/app.war”> <Parameter name=“config.param” value=“instance_3” override=“false”/> <Environment name=“config.name” value=“Instance 3” override=“false” type=“java.lang.String”/> </Context> Paul Spencer
