Apama Documentation : Connecting Apama Applications to External Components : Using Standard Adapters : Using the Apama Database Connector : The ADBCHelper Application Programming Interface : Specifying the adapter instance
Specifying the adapter instance
By default ADBCHelper actions use the default name given to the adapter instance, which is INSTANCE_1. If the adapter instance name is different from the default, for example if your Apama project has multiple adapter instances, you need to specify the name of the adapter instance you want to use. Use the DBUtil setAdapterInstanceName() action to do this.
To specify an adapter instance
*Call the setAdapterInstanceName action, passing in the adapter instance name variable.
For example:

com.apama.database.DBUtil db;
action onload() {
string adapterInstanceName := "EXAMPLE_ADBC_INSTANCE";
db.setAdapterInstanceName(adapterInstanceName);
// ...
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback