Add queue manager

You can add and delete queue manager names with the Action_AddQueueManager and Action_RemoveQueueManager actions. You can add or remove multiple queue manager names with one administration message. You can put names directly into the message by setting the ascii array field Queue_QMgrNameList. Alternatively, you can use the addQueueManager() and removeQueueManager() methods. Each of these methods takes one queue manager name, but you can call the method repeatedly to add multiple queue managers to a message.

This action is specific to store and forward queues. In this example multiple queue manager names are added to a String array (queueManagerNames) and set into the fields object. The action and fields object are added to the message.



© IBM Corporation 2002, 2003. All Rights Reserved