Home
Examples of MQCONN calls
In each of the following examples, the network is the same; there is a connection defined to two servers from the same WebSphere MQ client. (In these examples, the MQCONNX call could be used instead of the MQCONN call.)
There are two queue managers running on the server machines, one named
SALE and the other named SALE_BACKUP.
Figure 9. MQCONN exampleThe definitions for the channels in these examples are:
DEFINE CHANNEL(ALPHA) CHLTYPE(SVRCONN) TRPTYPE(TCP) + DESCR('Server connection to WebSphere MQ client') DEFINE CHANNEL(APLHA) CHLTYPE(CLNTCONN) TRPTYPE(TCP) + CONNAME(9.20.4.26) DESCR('WebSphere MQ client connection to server 1') + QMNAME(SALE) DEFINE CHANNEL(BETA) CHLTYPE(CLNTCONN) TRPTYPE(TCP) + CONNAME(9.20.5.26) DESCR('WebSphere MQ client connection to server 2') + QMNAME(SALE)DEFINE CHANNEL(BETA) CHLTYPE(SVRCONN) TRPTYPE(TCP) + DESCR('Server connection to WebSphere MQ client')The client channel definitions can be summarized as follows:
Name CHLTYPE TRPTYPE CONNAME QMNAME ALPHA CLNTCONN TCP 9.20.4.26 SALE BETA CLNTCONN TCP 9.20.5.26 SALE
Home