Home
Usage notes
- The function performed by the publish/subscribe routing exit is defined by the provider of the exit. The exit, however, must conform to the rules defined in the associated control block MQPXP.
- No entry point called MQ_PUBSUB_ROUTING_EXIT is actually provided by the publish/subscribe broker. However, a typedef is provided for the name MQ_PUBSUB_ROUTING_EXIT in the C programming language, and this can be used to declare the user-written exit, to ensure that the parameters are correct. The following example illustrates how this can be used:
#include "cmqc.h" #include "cmqxc.h" MQ_PUBSUB_ROUTING_EXIT MyRoutingExit; void MQENTRY MyRoutingExit(PMQPXP pExitParms) { /* C language statements to perform the function of the exit */ }
C invocation
exitname (&ExitParms);Declare the parameters as follows:
MQPXP ExitParms; /* Exit parameter block */
Home