Adapter Development Kit 9.12 | webMethods Adapter Development Kit Documentation | webMethods Adapter Development Kit Installation and User’s Documentation | Connections | Creating a WmManagedConnection Implementation Class
 
Creating a WmManagedConnection Implementation Class
Create an adapter connection class by extending the com.wm.adk.connection.WmManagedConnection base class. This class is primarily responsible for wrapping the connection to your resource. The method that instantiates the class receives information from the connection factory. Accessing the resource is your responsibility. You must override the following base class methods in your WmManagedConnection implementation class:
Method
Description
adapterCheckValue
Validates the user-supplied parameter values in service or notification editor, if ResourceDomainValues.setCanValidate(true) is set. For more information, see Connection Callbacks.
registerResourceDomain
Registers the resource domains. For more information, see Registering Resource Domains.
adapterResourceDomainLookup
Determines the new value or values that is applied to the parameter in service or notification editor. For more information, see Populating Resource Domains with Values.
destroyConnection
Called when the connection is removed from the pool, releasing implementation specific resources.
initializationRequired
Returns true if initializeConnection is present in the implementation class.
initializeConnection
Called once if initializationRequired returns true. Optional.