Adapter Development Kit 9.12 | webMethods Adapter Development Kit Documentation | webMethods Adapter Development Kit Installation and User’s Documentation | Runtime Activities | Runtime Connection Allocation for Adapter Services | Implementing Partitioned Connection Pools | Implementing WmConnectionSpec
 
Implementing WmConnectionSpec
A WmConnectionSpec object is used during an adapter service invocation to identify a connection node and/or to hold any contextual information from the service configuration and invocation pipeline that is needed to identify the partition of the connection. Accessors for the connection node name are provided in the base class. Contextual information need for partition definition is specific to the adapter and must be implemented in an adapter-defined subclass.
1. Create a class by extending the com.wm.adk.connection.WmConnectionSpec base class.
In the example, a MbConnectionSpec class is created.
2. Create a get and a set method for the username.
In the example, each customer is assigned a username that allows access to all of the bank's services. The username value must be cross-referenced to obtain the name by which that user is known on the specific backend system. This cross-referencing is delegated to the WmConnectionFactory.getConnectionRequestInfo implementation.