Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 7 Administering Message Queues and Mbox Sets : Using SWDIR\util\swadm to Administer Mbox Sets, Message Queues and Messages : Restore Dead Messages to a Queue

Restore Dead Messages to a Queue
To restore one or more dead iProcess messages to the queue from which they came, and make the messages live again, use the following command:
swadm restore_dead_messages to_queue_id ALL [BG|WISMBD|BGPREDICT]|message_id|-f file_name
where:
to_queue_id is the queue identifier of the destination queue, the queue to which you want to restore messages.
The usage of the parameter ALL [BG|WISMBD|BGPREDICT] varies according to database type:
BG: the dead message comes from a BG queue
WISMBD: the dead message comes from a WISMBD queue
BGPREDICT: the dead message comes from a BGPREDICT queue
Because there is more than one BG, WIS or BGPREDICT queue in the system, you must tell this command what type of dead message you want to move from the dead queue (one of BG, WIS or BGPREDICT), and the number of the live queue to which the message is to be restored. For example, the command:
RESTORE_DEAD_MESSAGES 1 ALL BG
moves all dead messages failed from the BG queue from the dead queue to queue 1.
RESTORE_DEAD_MESSAGES 1 ALL
moves all the dead messages failed by queue 1 from the dead queue to queue 1.
RESTORE_DEAD_MESSAGES 1 ALL
restores all the dead messages in queue 1 to being live messages in queue 1.
message_id specifies the ID of the message that you want to restore. The following example restores an exception message to queue 1:
swadm restore_dead_messages 1 291E84BA-A898-4D6A-A812-A76BE108B21D
-f file_name identifies a text file that contains one or more message IDs, separated from each other by a return character. If the beginning of a line has a semi-colon (;) character, that line is treated as a comment and all the content in the line is omitted.
 

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved