Home
Sequence of commands for adding and deleting brokers
This example shows the sequence of commands for adding and deleting brokers in a network. Queue manager A is to host the parent broker and queue manager B is to host the child broker. Channels are defined between the two queue managers. Broker A is the parent broker, so this must be created first. Broker B is then created as a child broker of broker A. The sequence of commands to achieve this is as follows:
START CHANNEL (B.to.A) START CHANNEL (A.to.B) strmqbrk -m A strmqbrk -m B -p AUse the following sequence for iSeries:STRMQMCHL CHLNAME(B.to.A) STRMQMCHL CHLNAME(A.to.B) STRMQMBRK MQMNAME(A) STRMQMBRK MQMNAME(B) PARENTMQM(A)When both brokers are deleted, broker B must be deleted first, and broker A must be available for this to happen. Only when broker B has been deleted can broker A be deleted. The sequence of commands to achieve this is as follows.
endmqbrk -m B STOP CHANNEL (A.to.B) START CHANNEL (A.to.B) dltmqbrk -m B endmqbrk -m A STOP CHANNEL (B.to.A) START CHANNEL (B.to.A) dltmqbrk -m AUse the following sequence for iSeries:ENDMQMBRK MQMNAME(B) ENDMQMCHL CHLNAME(A.to.B) STRMQMCHL CHLNAME(A.to.B) DLTMQMBRK MQMNAME(B) ENDMQMBRK MQMNAME(A) ENDMQMCHL CHLNAME(B.to.A) STRMQMCHL CHLNAME(B.to.A) DLTMQMBRK MQMNAME(A)
Home