[jboss-user] [Installation, Configuration & Deployment] - configuring QA and prod context in same jboss instance
do-not-reply at jboss.com
Wed Nov 29 20:21:06 EST 2006
I have an app which uses both web and ejb components. I want to be able to run 2 versions of my app in the same jboss instance.
I use an ear file which has been expanded. The plan is to just copy this ear directory to a second directory in the deploy directory and then make a few configuration changes. For instance I need to point the 2 contexts to different databases etc.
We have solved the basic JNDI naming problem by creating a script to process the various xml files and add a suffix to the various ejb names etc.
The problem is with the properties files. We can't seem to create a context specific properties object. If we use a singleton class to hold the properties, it will be global to jboss, not just to the context. Also the System.properties is global.
My question is: Is there a context specific properties mechanism? I would have thought that I could just copy the deployed directory without too much work, but this is turning into a bigger problem than we realized.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989882#3989882
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989882
More information about the jboss-user