Sample routing exit

A sample routing exit program is provided with WebSphere MQ Publish/Subscribe (see Sample programs). The exit sample is invoked using the RoutingExitPath in the Broker stanza of queue manager initialization file (see Broker configuration stanza).

The sample program changes either the destination queue or queue manager, depending upon the parameters supplied, as follows: