Adapter Development Kit 6.5 | webMethods Adapter Development Kit Documentation | webMethods Adapter Development Kit Installation and User’s Documentation | The Adapter Definition | Creating a WmAdapter Implementation Class
 
Creating a WmAdapter Implementation Class
 
Describing the Adapter to Integration Server
Describe WmAdapter method
Describing the Adapter's Resources to Integration Server
Initializing and Cleaning Up
Adding Custom DSPs to the Adapter Interface
Example WmAdapter Implementation Class
Before you begin, make sure you have created an adapter package to contain your adapter classes, as described in Creating an Adapter Package.
In your adapter package's main source code directory, you create an adapter definition by extending the WmAdapter base class. This class represents the main class of the adapter. In the example shown in Adapter Definition Implementation Classes, this class is MyAdapter. In this class, you create services and methods that:
*Describe the adapter to Integration Server (see Describing the Adapter to Integration Server).
*Describe the adapter's resources to Integration Server, including its connection factories, polling notification templates, listener notification templates, and its default resource bundle implementation class (see Describing the Adapter's Resources to Integration Server).
*Initialize resources and properties referenced by the adapter definition when the adapter is enabled, and clean up the resources when the adapter is disabled (optional; see Initializing and Cleaning Up).
*Add custom Dynamic Server Pages (DSPs) to your adapter's administrative interface (optional; see Adding Custom DSPs to the Adapter Interface).
The following sections describe the basic steps for implementing, deploying, and debugging an adapter definition. An example WmAdapter implementation class is presented in Example WmAdapter Implementation Class. Other chapters introduce more advanced techniques that make your adapter more manageable as you expand its functionality.