Writing publish/subscribe applications

Start writing publish/subscribe IBM MQ applications.

For an overview of publish/subscribe concepts, see Publish/subscribe messaging.

See the following topics for information on writing different types of publish/subscribe applications:

  • Writing publisher applications
    Get started with writing publisher applications by studying two examples. The first is modeled as closely as possible on a point to point application putting messages on a queue, and the second demonstrates creating topics dynamically - a more common pattern for publisher applications.
  • Writing subscriber applications
    Get started with writing subscriber applications by studying three examples: an IBM MQ application consuming messages from a queue, an application that creates a subscription and requires no knowledge of queuing, and finally an example that uses both queuing and subscriptions.
  • Publish/subscribe lifecycles
    Consider the lifecycles of topics, subscriptions, subscribers, publications, publishers and queues in designing publish/subscribe applications.
  • Publish/subscribe message properties
    Several message properties relate to IBM MQ publish/subscribe messaging.
  • Message ordering
    For a particular topic, messages are published by the queue manager in the same order as they are received from publishing applications (subject to reordering based on message priority).
  • Intercepting publications
    We can intercept a publication, modify it, and then republish it before it reaches any other subscriber.
  • Publishing options
    Several options are available that control the way messages are published.
  • Subscription options
    Several options are available that control the way message subscriptions are handled.

Parent topic: Writing a procedural application for queuing


Related concepts


Related tasks