Dynamic Connections
Like most EMML attributes, connection information can be set dynamically using Presto parameters, input parameters or variables. This example retrieves connection information from Presto global attributes:
<variables>
<variable name="global.customerDS.url" type="string"/>
<variable name="global.customerDS.driver" type="string"/>
<variable name="global.customerDS.user" type="string"/>
<variable name="global.customerDS.pw" type="string"/>
</variables>
<datasource name="customerDS"
url="$global.customerDS.url"
driverclassname="$global.customerDS.driver"
username="$global.customerDS.user"
password="$global.customerDS.pw"/>