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 © 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.