Adapter Development Kit 9.12 | webMethods Adapter Development Kit Documentation | webMethods Adapter Development Kit Installation and User’s Documentation | The Adapter Definition | Deploying the adapter | Creating Adapter Startup and Shutdown Java Services
 
Creating Adapter Startup and Shutdown Java Services
 
Creating Java Classes for Adapter Startup and Shutdown
Creating Java Services for Adapter Startup and Shutdown using Designer
The adapter must have one Java Service each for startup and shutdown.
*The startup method must retrieve an instance of your WmAdapter implementation class and pass it to AdapterAdmin.registerAdapter method.
*The shutdown service must perform the following:
*Retrieve an instance of your WmAdapter implementation class and pass it to AdapterAdmin.unregisterAdapter method.
*Perform the cleanup operations needed by your adapter. In most cases, this is accomplished by calling MyAdapter.cleanup method before the call to AdapterAdmin.unregisterAdapter method.
You can create the startup and shutdown Java Services in two ways:
1. Create adapter admin Java class, which is used to generate corresponding Java Services using jcode utility.
2. Create Java Services using Designer, which is compiled using Integration Server Administrator.