Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IBM MQ publish/subscribe send message to one subscriber

Tags:

java

jms

ibm-mq

I want to build a publish/subscribe program to compute matrix manipulation on a cluster.

When a publisher send a message to a topic, message copies to all subscribers.

I want a copy of message send to one subscriber and the message deletes and not send to other subscribers.

like image 940
Arman Avatar asked Oct 19 '22 13:10

Arman


1 Answers

There are two ways to do this.

  1. Make an administrative subscription and have all subscribers read messages off the queue to which the subscription points.
  2. Use MQ V8.0, the new JMS 2.0 interface, and the Shared Subscription feature.

Note that in both of these cases, all subscribers are connected to the same queue manager. Although Pub/Sub creates a single logical message, when it is broadcast to other queue managers it becomes multiple physical messages and their consumption by subscribers is not coordinated across the network.

like image 94
T.Rob Avatar answered Oct 29 '22 06:10

T.Rob