need help in migration in MWS

Hi All,

I am done with my backend code and front-end design in CAF.
Now I want to do the migration from DEV to UAT in MWS.
Can anybody help me with the process to do the migration in MWS?

Please let me know if any further information required.

Regards
Jyoti

Do you mean code movement from Dev to UAT? Correct me if I am wrong.

Use WmDeployer I see even MWS components can be deployed.

Hello,

Yes…it is from DEV to UAT.
Do we need to link the environment variables to the webservices connector? Otherwise, we have to change the server details in each environment.
Please comment.

Regards
Jyoti

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