Globalization of dynamic variables in wso2 Integration Studio

168 Views Asked by At

I've so far been using variables by saving them in a local entry file, and then using $ctx to call them and use them in my proxy. I want to know if there's a way in wso2 Integration studio wherein I can create multiple global variables (eg; to save a host url endpoint or some String values), and call them in my proxy by NOT making use of a local entry file.( Deployment will be using k8 pods)

1

There are 1 best solutions below

0
ycr On

The best option is to pass environment-specific parameters to the WSO2 pod as environment variables. Once passed as environment variables you can access them as explained here.

If you want to assign the value to a Property you can do something like the below.

<property expression="get-property('env','JAVA_HOME')" name="java" scope="default" type="STRING"/>