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.