$SYSTEM:DB_URL$;$SYSTEM:DB_NAME $SYSTEM:DB_URL$;$SYSTEM:DB_NAME $SYSTEM:DB_URL$;$SYSTEM:DB_NAME

Concat two env variables in WSO2 Dataservice

98 Views Asked by At

Can I concat two variables in WSO2 Dataservice?

Something like

<config id="DBConf">
        <property name="url">$SYSTEM:DB_URL$;$SYSTEM:DB_NAME</property>
</config>
1

There are 1 best solutions below

1
ycr On BEST ANSWER

I don't think you can add multiple environment variables. But as a workaround maybe you can concat these two variables where you are exporting these environment variables.

export FULL_DB_URL=$DB_URL;$DB_NAME

then in dataservice

<config id="DBConf">
        <property name="url">$SYSTEM:FULL_DB_URL</property>
</config>