Loading and activating queue manager rules

Java codebase

Queue manager rules are loaded, or changed whenever a queue manager administration message containing a request to update the queue manager rule class is received.

If a queue manager rule has already been applied to the queue manager, the existing rule is asked whether it may be replaced with a different rule. If the answer is yes, the new rule is loaded and activated. A restart of the queue manager is not required.

The QueueManagerUpdater command-line tool in the package examples.administration.commandline shows how to create such an administration message.

C codebase

The user's rules module is loaded and initialized when the queue manager is loaded into memory. This occurs as a result of calls either to mqeAdministrator_QueueManager_create() or to mqeQueueManager_new(). The set-up steps are as follows:

The rules module is unloaded when the queue manager is freed. Note that, unlike the java codebase, the rules implementation is linked to the execution lifecycle of a single queue manager and may not be replaced during the course of this lifecycle.



© IBM Corporation 2002. All Rights Reserved