Hi Jyoti,
I have to agree with M@he$h. If you want to make a deployment from one environment to another you should use WmDeployer.
Now I think your problem is how to load environment specific configurations into your web/task application.
You can do this in the following way:
- create a properties file for every environment: config.environment_name.properties (ex: config.DEV.properties or config.UAT.properties)
- these property file should be loaded into the application by a managed bean
public Configuration() {
try {
if (StringUtils.isNotEmpty(System.getProperty("config.id"))) {
Properties p = new Properties();
p.load(ContextUtils.getResourceInputStream("/WEB-INF/" + "config." + System.getProperty("config.id")
+ ".properties"));
//put the values read from the config file in the p object
}
}
}
- on the MWS server add a new property in the setEnv(.bat/.sh) file like this:
-Dconfig.id=DEV
From now one you will use the fields of the Configuration class.
Hope this helps,
Vlad Turian
#webMethods-BPMS#MWS-CAF-Task-Engine#webMethods