Adapter Development Kit 6.5 | webMethods Adapter Development Kit Documentation | webMethods Adapter Development Kit Installation and User’s Documentation | Polling Notifications | Polling Notification Implementation | Implementing Configuration Resource Domains for Polling Notifications
 
Implementing Configuration Resource Domains for Polling Notifications
The next steps for implementing a polling notification are:
*Defining and implementing the resource domains required for the metadata parameters you created in Specifying Configuration Metadata for Polling Notifications.
*Identifying the values upon which those resource domains depend.
For each parameter that requires a resource domain to supply a value, or that requires a validity check for values supplied by adapter users, you must:
*Call WmTemplateDescriptor.setResourceDomain, passing the name of the parameter, the name of the resource domain, and an array of the names of any parameters on which the resource domain will depend (see Example Polling Notification: SimpleNotification, line 123).
*Register the resource domain support in the registerResourceDomain method of the associated connection class (see lines 195-200).
*Implement code to populate the resource domain values and/or adapter check values (discussed below).
In this example, there are no preset values, but adapter user-supplied data for the directory parameter is validated to ensure that the directory exists (see lines 133-157).