Adapter Notifications
Overview
This chapter describes how to configure and manage listeners and listener notifications. For a detailed description of Adapter for MSMQ listeners, see Listeners. For a detailed description of the available Adapter for MSMQ listener notifications, see Listener Notifications.
Listeners
Before you Configure New Listeners
About this task
Perform the following tasks before configuring new listeners.
To prepare to configure a new listener
Procedure
Configuring New Listeners
About this task
When you configure Adapter for MSMQ listeners, you specify information that Integration Server uses to enable listeners to listen for, and get messages on, a specified queue.
You configure Adapter for MSMQ listeners using Integration Server Administrator.
To configure a new listener
Procedure
Testing Listeners
About this task
In general, you can test listeners to ensure that you have configured them correctly.
To test a listener
Procedure
Viewing Listener Parameters
You can view a listener's parameters from Integration Server Administrator or from Designer. You also can view the notification order of a listener.
Viewing Listener Parameters Using Integration Server Administrator
About this task
Perform the following steps to view listener parameters using Integration Server Administrator.
To view a listener's parameters using Integration Server Administrator
Procedure
Viewing Listener Parameters Using Designer
About this task
Perform the following steps to view listener parameters using Designer.
To view a listener's parameters using Designer
Procedure
Viewing the Notification Order of a Listener
About this task
Perform the following steps to view the notification order of a listener.
To view the notification order of a listener
Procedure
Editing Listeners
About this task
You use Integration Server Administrator to edit the listener in the following situations:
- If you need to select a newly configured connection, or if you need to change any listener properties, such as filter values, you can update the listener parameters.
- If you need to change the order of the notifications that are associated with the listener, see Editing the Notification Order.
To edit a listener
Procedure
Editing the Notification Order
About this task
To edit the notification order of a listener
Procedure
Copying Listeners
About this task
You can copy an existing listener to create a new listener with the same or similar properties without having to type or specify all properties for the listener. You copy adapter listeners using Integration Server Administrator.
To copy a listener
Procedure
Deleting Listeners
About this task
If you no longer want to use a listener, use the following instructions to delete the listener. You use Integration Server Administrator to delete listeners.
To delete a listener
Procedure
Enabling Listeners
About this task
Before you enable a listener, you need to configure one or more notifications to associate with the listener. If no notifications have been configured when you enable the listener, Integration Server Administrator displays the following warning message: "No notifications for listener."
After you have configured notifications, you must enable the listener so that the associated notifications will communicate appropriately with the listener at run time. You enable the listeners using Integration Server Administrator.
The Status column indicates the readiness of the listener. When the status is Succeeded, the listener is ready to be enabled. When the status is Failed,check the following:
- The queue access mode of the connection. It should be set to inbound.
- The order in which you disabled the listener and notification. You must disable the listener before disabling the notification.
For more information on configuring listeners and notifications, see the sections Configuring New Listeners and Configuring Listener Notifications.
To enable a listener
Procedure
Suspending Listeners
About this task
You can use Integration Server to suspend listeners.
When you suspend a listener, the action may not take effect right away. You may have to wait as long as the time specified in the Timeout parameter for the listener. If one or more messages appear on the queue within that time interval, the adapter may receive and process the first message.
To suspend a listener
Procedure
Disabling Listeners
About this task
Listeners must be disabled before you can edit or delete them. You disable listeners using Integration Server Administrator.
When you disable a listener, the action may not take effect right away. You may have to wait as long as the time specified in the Timeout parameter for the listener. If one or more messages appear on the queue within that time interval, the adapter may receive and process the first message.
To disable a listener
Procedure
- In the Adapters menu in the navigation area of Integration Server Administrator, click IBM webMethods Adapter for MSMQ.
- In the IBM webMethods Adapter for MSMQ menu, click Listeners.
- The Listeners screen appears. Select Disabled from the drop-down list in the State field. Integration Server Administrator disables the listener.
Listener Notifications
The following sections provide instructions for configuring and managing Adapter for MSMQ listener notifications. Adapter for MSMQ has two types of listener notifications that you can configure:
- Asynchronous Listener Notifications
- Synchronous Listener Notifications
For more information on how listener notifications work, see Listener Notifications.
Before You Configure Listener Notifications
About this task
Perform the following tasks before configuring listener notifications.
To prepare to configure a listener notification
Procedure
- Install Integration Server and Adapter for MSMQ on the same machine. For details, see Installing, Upgrading, and Uninstalling the Adapter for MSMQ.
- Make sure that you have Integration Server administrator privileges so that you can access Adapter for MSMQ administrative screens. For information about setting user privileges, see the IBM webMethods Integration Server Administrator’s Guide for your release.
- Start Integration Server and Integration Server Administrator, if they are not already running.
- Using Integration Server Administrator, make sure that the WmMSMQAdapter package is enabled. To verify the status of the WmMSMQAdapter package, see Enabling Packages.
- Configure a listener using Integration Server Administrator. For more information on how to configure a new listener, see Configuring New Listeners.
- Using Designer, create a user-defined package to contain the listener, if you have not already done so. For more information about managing packages, see Package Management.
Consideration for Listener Notifications
For each listener, configure a default notification that processes all messages that do not pass any notification filter criteria. From Integration Server Administrator, edit the listener's notification order list and place the default notification last. For instructions on how to configure a notification, see Configuring Listener Notifications. For instructions on how to edit the notification order list, see Editing Listeners.
Using Asynchronous and Synchronous Listener Notifications
The following table lists the tasks required to use these types of notifications:
| Task | Use this tool... | |
|---|---|---|
| 1 | Configure an adapter connection. For details, see Configuring Adapter Connections. | Integration Server Administrator |
| 2 | Select the appropriate notification template and configure the
notification. For instructions to configure notifications, see Configuring Listener Notifications. |
Designer |
| 3 | If you plan to use an Integration Server flow or Java service,
design it to react to the data changes contained in the notification's publishable document. Configure an Integration Server trigger to use the
notification's publishable document. For instructions on configuring notifications, see the IBM webMethods Service Development Help for your release. Note: To process the message from the queue, you should create an Integration Server trigger that subscribes
to the Integration Server document type
that Adapter for MSMQ created with the
asynchronous notification. For more information about using triggers, see the
Publish-Subscribe Developer’s Guide for your release.
|
Designer |
| 4 | Enable the adapter notifications. For instructions to enable listener notifications, see Enabling Listener Notifications. | Integration Server Administrator |
Configuring Listener Notifications
Adapter for MSMQ has two types of listener notifications that you can configure:
- Asynchronous Listener Notifications
- Synchronous Listener Notifications
For a description of the asynchronous and synchronous listener notifications, see Listener Notifications. You configure listener notifications using Designer.
Configuring Asynchronous Listener Notifications
About this task
Perform the following tasks to configure asynchronous listener notifications.
To configure an MSMQ asynchronous listener notification
Procedure
Configuring Synchronous Listener Notifications
About this task
Perform the following tasks to configure synchronous listener notifications.
To configure an MSMQ synchronous listener notification
Procedure
Editing Synchronous Listener Notification Services
About this task
The listener notification service is specified during the initial configuration of the synchronous listener notification. Afterwards you may need to change the service that is invoked. To change the notification service, complete the following steps.
To edit the notification service
Procedure
- From Designer, in the adapter notification service editor, select the Adapter Settings tab.
- Click the Browse button next to Service Name. The Select Menu displays.
- Navigate and select the new service.
- Click OK.
- From the File menu, select Save.
Behavior of Listener Notifications
Adapter for MSMQ handles messages depending on how you have configured listeners and listener notifications in your system. For example, messages behave differently when the following combinations are set up in your Adapter for MSMQ:
- Transactional or non-transactional listeners
The transactionality of a listener depends on the transactionality of the connection. For example, when you associate a non-transactional connection with a listener, the listener is non-transactional.
- Transactional or non-transactional asynchronous
notifications
The transactionality of an asynchronous notification depends on the transactionality of a listener. For example, when you associate a non-transactional listener with an asynchronous notification, the asynchronous notification is non-transactional.
- Transactional or non-transactional synchronous
notifications
The transactionality of a synchronous notification depends on the transactionality of a listener. For example, when you associate a non-transactional listener with a synchronous notification, the synchronous notification is non-transactional.
Testing Listener Notifications
About this task
You can test listener notifications to ensure that you have configured them correctly.
To test listener notifications
Procedure
Testing Publishable Document Types
You can test a publishable document type that is associated with an asynchronous notification running it in Designer. When you test a publishable document type, you provide input values that the Designer uses to create an instance of the publishable document type. You also specify a publishing method (such as publish, publish and wait, deliver, or deliver and wait). Designer then publishes a document and displays the results of the publish in the Results dialog box. Testing a publishable document type provides a way for you to publish a document without building a service that does the actual publishing. If you select a publication action where you wait for a reply document, you can verify whether reply documents are received.
For instructions to test a publishable document type, see the Publish-Subscribe Developer’s Guidefor your release. Also, for a complete description of the envelope parameters located in the WmPublic folder, see the IBM webMethods Integration Server Built-In Services Referencefor your release. The envelope parameters define the sender's address, the time the document was sent, password and certificate information, and other useful information for routing and control.
Viewing Listener Notifications
About this task
You use the Designer to view listener notifications.
To view a listener notification
Procedure
Editing Listener Notifications
About this task
You use Designer to edit both synchronous and asynchronous listener notifications. You also use Designer to edit the publishable document type associated with the asynchronous listener notifications. However, you cannot edit the request and reply document types that are associated with synchronous listener notifications.
Editing a Listener Notification
About this task
Perform the following tasks to edit a listener notification.
To edit a listener notification
Procedure
Editing an Asynchronous Publishable Document Type
About this task
Perform the following tasks to edit an asynchronous publishable document type.
To edit an asynchronous publishable document type
Procedure
Deleting Listener Notifications
About this task
If you no longer want to use a particular Adapter for MSMQ listener notification, you can delete it by following the instructions in this section. You delete listener notifications, both synchronous and asynchronous, using Designer.
To delete a listener notification
Procedure
- In Designer, expand the package and folder that contain the listener notification you want to delete.
- Right-click the listener notification and click Delete.
Enabling Listener Notifications
About this task
After you configure a listener notification, you need to enable it using Integration Server Administrator.
To enable a listener notification
Procedure
Disabling Listener Notifications
About this task
You disable listener notifications using Integration Server Administrator.
To disable a listener notification