Integrate Apache Kafka queues with
Maximo® Manage to implement notification messaging.
Before you begin
To configure push notifications, you must configure either JMS queues or Apache Kafka queues.This example assumes you already have a notification
queue created in Kafka. For this example, the notification
queue is named notfqueue.
Procedure
-
Add a Kafka provider.
- From
Maximo Manage, open the External Systems
application.
- Add or select the external system and then select Add/Modify Message
Providers to open the Message Hub Provider dialog box.
- Set a name for your provider, KAFKA for example, and then set the
properties required to connect to your Kafka server.
- Add the Kafka queue to
Maximo Manage.
- From the External Systems application, select Add/Modify
Queues.
- Click the new row icon. For the Message Provider field, click
the lookup icon and select the Kafka message provider that
you specified.
- For the Queue JNDI Name field, click the lookup icon and select
the Kafka notification queue.
For example,
notfqueue.
- Deselect Inbound.
Notification queues are
sequential outbound.
- Click OK.
- Create a Kafka cron task instance.
- Open the Cron Task Setup application.
- From the Cron Task field, search for
Kafka.
- Click the Kafka row to open the cron task.
- From the Cron Task Instances list, click the new row icon to
add an instance for the notification queue.
- In the Details section, enter a Cron Task Instance
Name.
For example, kafkanotf.
- Enter values for Schedule, Run as User,
and other fields as required.
- Enable the Active? option.
- In the Parameters section, enter a name in the
Value field of the TOPIC cron task
parameter.
For example, notfqueue.
- Set the PARTITION parameter to
0.
- Set the MESSAGEPROCESSOR parameter to
com.ibm.tivoli.maximo.notification.NotificationMessageProcessor.
- Set the MESSAGEHUB parameter to the name of your message
provider.
For example, KAFKA.
- Save the record.
- Set the notification external system.
- Open the External Systems application.
- From the System field, search for
NOTIFICATION.
- Click the NOTIFICATION row to open the NOTIFICATION
record.
The NOTIFICATION system is the default system used for
notifications. Use this system for all notification configuration. Do not create a new system to
handle notifications.
- If the Enable? option is enabled, deselect the option to
disable it, and then save the record.
- For the Outbound Sequential Queue field, click the lookup icon
and select the Kafka notification queue.
For
example, notfqueue.
- Enable the Enable? option, and then save the
record.