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.

 View Only
  • 1.  Global variable

    Posted Thu May 11, 2023 03:30 AM

    Hi, how are you? I’m currently facing an issue with my services which contain global variables. After pushing these services to MSR and deploying them, the global variable gets deleted automatically. How can I make the global variable static so that it persists across deployments?


    #webMethods
    #Integration-Server-and-ESB
    #Developer-Portal
    #API-Gateway
    #API-Portal
    #B2B-Integration
    #Service-Designer
    #API-Management


  • 2.  RE: Global variable

    Posted Thu May 11, 2023 10:33 AM

    Hi Mohammad,

    which version are you working with?
    Can you provide some more details about your issue, please?
    Where do you detect that the global variable got deleted, in IS Admin under Settings or the usage of the variable in the service?

    Regards,
    Holger


    #Service-Designer
    #Integration-Server-and-ESB
    #B2B-Integration
    #API-Management
    #Developer-Portal
    #webMethods
    #API-Gateway
    #API-Portal


  • 3.  RE: Global variable

    Posted Sun May 14, 2023 07:10 AM


  • 4.  RE: Global variable

    Posted Mon May 15, 2023 02:39 AM

    Hi Yousef,
    Can you indicate if your problem was solved by my recommendation or if not detail what you did? It will help other people who are search on a similar issue.

    For any new queries I would recommend opening a new request, it will make it easier for people to respond.
    regards,
    John.


    #B2B-Integration
    #Integration-Server-and-ESB
    #Developer-Portal
    #API-Gateway
    #Service-Designer
    #API-Management
    #API-Portal
    #webMethods


  • 5.  RE: Global variable

    Posted Thu May 11, 2023 11:45 AM

    I think you are not deploying your global variable properly. Global varialbes aren’t deleted automatically.

    If you are using deployer, make sure you are selecting global variables when selecting the assets to deploy. Global variables are usually environment dependent hence usually not deployed.


    #API-Portal
    #webMethods
    #B2B-Integration
    #API-Gateway
    #API-Management
    #Service-Designer
    #Integration-Server-and-ESB
    #Developer-Portal


  • 6.  RE: Global variable

    Posted Thu May 11, 2023 01:07 PM

    What do you mean by pushing ?
    Global variables are stored in a file outside of your packages. So if you are pushing just packages then that won’t be enough.
    You need to copy the file for global variables from

    <SAG_HOME>/IntegrationServer/instances/default/config/globalVariables.cnf
    <SAG_HOME>/IntegrationServer/config/globalVariables.cnf
    

    You can also set global variables via configuration variables (application.properties) e.g.

    globalvariable.myvar.value=value
    

    if you have dots ‘.’ then you need to do it as

    globalvariable.com..myvar.value=value
    

    #API-Gateway
    #API-Management
    #Integration-Server-and-ESB
    #Developer-Portal
    #B2B-Integration
    #Service-Designer
    #API-Portal
    #webMethods


  • 7.  RE: Global variable



  • 8.  RE: Global variable



  • 9.  RE: Global variable