Connect to a queue without specifying a queue manager name

I am new to MQ .. I have a requirement. Can I connect to a specific queue using java on the server without specifying the name of the queue manager? I have all the details, such as host name, port number, request, response queue name, etc.,

thank

+5
source share
1 answer

Yes. If the application specifies the name QMgr, then the specified name should actually match the connected QMgr. However, if the application leaves the name QMgr empty, then any QMgr answers on this host, the port and channel are accepted.

For example, if you define a managed entity, it might look like this:

DEFINE  CF(JMSDEMOCF) +
        SYNCPOINTALLGETS(YES) +
        TRAN(client) +
        HOST(127.0.0.1) CHAN(MYAPP.SVRCONN) PORT(1414) +
        QMGR( )

If you are not using JNDI, leave an environment hash table entry for the name QMgr.

+5

All Articles