Defining a WmPollingNotification Implementation Class
1. Create a directory structure for the Java package for adapter polling notification implementation. For example: com\mycompany\adapter\myadapter\notifications. In the example, the Java package created is com\wm\MyAdapter\notifications.
Note:
You must create your Java package and classes in the adapterPackageName\code\source directory in the webMethods package you created using Designer.
2. Create a class by extending com.wm.adk.notification.WmPollingNotification base class.
In the example, the class created is SimpleNotification.
Important:
You can make a callback to the connection factory using WmManagedConnection.getFactory. If you do this, do not call the set methods on the connection factory which produces unpredictable results.
3. Implement the runNotification method.
4. Override the base class implementation of the fillWmTemplateDescriptor method.