Sun Java System Messaging Server 6.3 Administration Guide

22.2.1 Planning for Your JMQ Notification Service

A JMQ notification plug-in is only one part of a Message Queue service. A messaging service also includes clients that consume the messages and the Message Queue infrastructure (the broker, administration components, and so on).

The following steps outline the tasks you should perform to create a Message Queue service that supports Messaging Server:

  1. Design your notification message service.

    Define the notification messages needed for your Messaging Server installation. The planning and design phases of your message-service development lifecycle lie outside the scope of this chapter. However, you should answer the following design questions before you configure the JMQ notification plug-in:

    • Which message events do you need to produce notifications? For a list of the available notification messages, see 22.3.1 Notification Messages.

    • Do you intend to produce messages to a queue, a topic, or both?

    • Do you intend to use the proprietary Event Notification Service as well as the Message Queue service?

    The answers to these questions will help you decide whether to configure one notification plug-in or multiple plug-ins, and to determine how to configure each plug-in.

  2. Install, configure, and deploy the Message Queue product.

    For information about installing Message Queue, see the Sun Java System Message Queue Installation Guide.

    For information about configuring and deploying Message Queue, see the Sun Java System Message Queue Administration Guide.

  3. Write one or more Message Queue clients that will consume the JMQ notification messages.

    The clients must conform to the requirements for a Message Queue client API. A simple example of client source code, written in C, is available in the following path:


    /opt/SUNWmsgsr/examples/jmqsdk/

    The source file name is jmqclient.c.

    This client source code receives messages from the JMQ notification messages defined by the parameters in the libjmqnotify library. It then sends the message output to stdout.

    For information about writing Message Queue clients in C or Java, see the Sun Java System Message Queue Developer's Guide for C Clients or the Sun Java System Message Queue Developer's Guide for Java Clients.

  4. Configure and enable the JMQ notification plug-in for producing notification messages.

    The remainder of this chapter describes how to configure the notification plug-in.

  5. Configure and start the runtime Message Queue clients.

    For information about deploying the runtime Message Queue clients, see the Sun Java System Message Queue Administration Guide.