Deploying and Managing Apama Applications > 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 © 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.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.