Hello,
There is web application - war file.
The task is to deploy the same war file to application server as different applications.
Using TomCat it can be done using context file in conf\Catalina\localhost
Each context file has the same docBase pointing to the same extracted war file. And set of Environment settings for variables that will be resolved by application. Names of variables are the same but values are different for each application.
e.g. <Environment name="SMX_NAME" value="smxInst1" type="java.lang.String" override="true"/>
Now we need to do the similar thing using JBoss. Is it possible to achive without war modifications during deploy?
Is is possible to put war to ear with some additional files which define applicaiton context? We need to have a way to define set of variables (JNDI or System) which will be visible only in context of one application.
Thank you.