Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to deploy the same binaries (war) several times with different context

 
Pavlo Fenoga
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic