File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes How to deploy the same binaries (war) several times with different context Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to deploy the same binaries (war) several times with different context" Watch "How to deploy the same binaries (war) several times with different context" New topic
Author

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

Pavlo Fenoga
Greenhorn

Joined: Mar 24, 2010
Posts: 1
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to deploy the same binaries (war) several times with different context