How to access system property from WSO2 ESB and Registry

前端 未结 2 1933
礼貌的吻别
礼貌的吻别 2021-01-17 01:42

My WSO2 ESB proxy service references an endpoint which is located at different URLs in various environments - DEV, TEST, PROD. According to the WSO2 documentation, I need to

2条回答
  •  情书的邮戳
    2021-01-17 01:47

    You can access system properties inside ESB sequences/proxy services using the script mediator as follows;

        
        
           
        
    

    Here "file.separator" property is set as the property in the message context inside the script mediator and it can be used in subsequent mediators.

    You also can access properties defined in a file in ESB registry. For example if you have a file in configuration registry (test.xml) with the following content,

    HellooWorld
    

    The text element "World" in can be accessed using property mediator as follows,

    
    
          
    
    

提交回复
热议问题