Integrate Software AG Products Using Digital Event Services 10.4 | Integrate Software AG Products Using Digital Event Services | MashZone NextGen Help | Appendix | Legacy Presto components | Mashables and Mashups | 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 MashZone NextGen parameters, input parameters or variables. This example retrieves connection information from MashZone NextGen 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 © 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release