MQCONN - Connect queue manager
The MQCONN call connects an application program to a queue manager. It provides a queue manager connection handle, which is used by the application on subsequent message queuing calls.
- On i5/OS, applications running in compatibility mode do not have to issue this call. These applications are connected automatically to the queue manager when they issue the first MQOPEN call. However, the MQCONN and MQDISC calls are still accepted from i5/OS applications.
Other applications (that is, applications not running in compatibility mode) must use the MQCONN or MQCONNX call to connect to the queue manager, and the MQDISC call to disconnect from the queue manager. This is the recommended style of programming.
On Websphere MQ for OS/2, Windows, UNIX, and OS/400, each thread in an application can connect to different queue managers. On other systems, all concurrent connections within a process must be to the same queue manager.