Mashups in EMML : Writing Mashups in EMML : Declaring Data Sources : Dynamic Connections
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"/>
Copyright © 2013-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback