What we look at in the following sections are some common what if questions. For each scenario, the repercussions are examined for an active Q subscription when a record is inserted.
What we will test in this section is what happens if the Queue Manager is stopped. We will test this using unidirectional replication (Refer to Appendix A for details on how to set up unidirectional replication).
1. First let's make sure that replication is working. From CLP-A, issue:
$ db2 "insert into eric.t1 values (5,5,'H')"
From CLP-B, issue:
$ db2 "select * from fred.t1" C1 C2 C3 ----------- ----------- ---------- 5 5 H 1 record(s) selected.
We should see one record in
FRED.T1
onDB2B
.We can see that the unidirectional Q replication setup is working.
2. Now we can continue with our test. Stop the WebSphere MQ on the source server.
$ endmqm -p QMA
WebSphere MQ queue manager '
QMA
' ending.WebSphere MQ queue manager '
QMA
' ended.Is the Q subscription...