8 IBM WebSphere Everyplace Access V5, Volume IV: Advanced Topics
Subscription notifications from the Subscription Manager (via trigger
handlers)
When the Notification Manager receives a message, it receives the destination
user (or group) and the message. It queries Member Services to see if the
destination is a group and retrieves all the necessary user IDs. When the
Notification Manager knows the users, it queries one by one all the suitable
delivery channels in which it has to send out the notifications and preferences
associated to that channel or the list of channels. If any information relative to
delayed notification is available in the message it receives, the Notification
Manager works accordingly to queue that message.
After it has decided which channel or channels it must use, the Notification
Manager sends the notification to the channel adapter using a WebSphere
Application Server embedded messaging queue system. Then, messages are
delivered to the appropriate channel adapter.
The Notification Manager keeps track of all the delivery status messages that are
sent by the channel adapters. Applications can use that delivery status to check
whether a message was delivery successfully or if it failed.
1.2.6 Trigger handler
When a content match occurs, the trigger handler notifies the appropriate user
via the Notification Manager. The trigger handler also participates in adding,
modifying, and querying subscriptions. In some cases, the trigger handler could
be used for other tasks. such as login, reformatting the data that is received by
the Subscription Manager, and so on.
Intelligent Notification Services provide sample trigger handlers with the sample
subscription portlets. You can modify a sample trigger handler or use it as model
to develop a trigger handler that satisfies your business needs. For more
information about trigger handlers, see 3.4, “Trigger handler” on page 96.
1.2.7 Channel adapters
The Notification Manager sends notifications to many types of delivery channels
by interfacing with those delivery channels through channel adapters (see
Figure 1-4 on page 7). Channel adapters receive notification messages from the
Notification Manager and transcode those messages into the proper formats for
the designated delivery channels. Channel adapters use transcoders to format
messages to device specifications. A separate channel adapter is provided for
each different delivery channel.