wso2dataservice

Concat two env variables in WSO2 Dataservice


Can I concat two variables in WSO2 Dataservice?

Something like

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

Solution

  • 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>