Adapter Development Kit 6.5 | webMethods Adapter Development Kit Documentation | webMethods Adapter Development Kit Installation and User’s Documentation | Polling Notifications | Polling Notification Callbacks
 
Polling Notification Callbacks
The WmNotification base class defines a set of callback methods that you can override in any notification implementation class. The following table describes when these methods are called, and the impact of an exception thrown from the method. For complete details, see the Javadoc for the WmNotification class.
This callback ...
Is called when ...
Exception effect
deleteCallBack
Any attempt is made to delete or rename the notification node.
Error logged, node will not be deleted/renamed.
disableCallBack
The node status is changed to disabled.
Error logged but node is still disabled.
enableCallBack
The node status is changed from disabled to enabled.
Error logged, node status remains disabled.
initCallBack
The node is created, the package is enabled, and so on.
Error logged.
resumeCallBack
The node status is changed from suspended to enabled.
Error logged, node remains suspended.
shutdownCallBack
The node is disabled or suspended, the server is shutdown, the package is disabled, and so on.
Error logged.
startupCallBack
The node is enabled or resumed, the server starts, and so on.
Error logged, node is disabled.
suspendCallBack
The node state is changed from enabled to suspended.
Error logged.
updateCallBack
The node is modified (not called when node is created).
Error logged, updates are discarded.
Note:
In all cases, an AdapterException will cause the associated connection to be destroyed and removed from the pool.