MQ_PUBLISH_EXIT - Publish exit
The MQ_PUBLISH_EXIT call can inspect and alter messages delivered to subscribers.
Purpose
Use the publish exit to inspect and alter messages delivered to subscribers:
- Examine the contents of a message published to each subscriber
- Modify the contents of a message published to each subscriber
- Alter the queue to which a message is put
- Stop the delivery of a message to a subscriber
This exit is not available on IBM MQ for z/OS .
Syntax
MQ_PUBLISH_EXIT (ExitParms, PubContext, SubContext)Parameters
- ExitParms (MQPSXP)- Input/Output
- ExitParms contains information about the invocation of the exit.
- PubContext (MQPBC) - Input
- PubContext contains contextual information about the publisher of the publication.
- SubContext (MQSBC) - Input/Output
- SubContext contains contextual information about the subscriber receiving the publication.
- MQPSXP - Publish exit data structure
The MQPSXP structure describes the information that is passed to and returned from the publish exit. - MQPBC - Publication context data structure
The MQPBC structure contains the contextual information, relating to the publisher of the publication, that is passed to the publish exit. - MQSBC - Subscription context data structure
The MQSBC structure contains the contextual information, relating to the subscriber that is receiving the publication, that is passed to the publish exit.
Parent topic: User exits, API exits, and installable services reference