Chapter 3. Using MQTT with IBM WebSphere MQ Telemetry 77
Sending a message to a client directly
As an alternative to the publish/subscribe approach, a WebSphere MQ application has the
capability to send an unsolicited message to an MQTT V3 client directly. This method can be
accomplished by putting the message onto the SYSTEM.MQTT.TRANSMIT.QUEUE, specifying the
ClientID as the queue manager and designating the topic as a queue. The message goes
directly to the client because the ClientID (ClientIdentifier) is specified in the code through the
creation of an object descriptor, with the client as the ObjectQmgrName in the WebSphere MQ
application.
The following syntax is an example of that process:
MQOD.ObjectQmgrName = ClientIdentifier;
MQOD.ObjectName ...