IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  need help in migration in MWS

    Posted 09/14/15 07:06 AM

    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


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 2.  RE: need help in migration in MWS

    Posted 09/14/15 07:16 AM

    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.


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 3.  RE: need help in migration in MWS

    Posted 09/14/15 09:05 AM

    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


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 4.  RE: need help in migration in MWS

    Posted 09/28/15 06:43 AM

    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