Sun Java System Message Queue 4.3 Developer's Guide for C Clients

Shutting Down Connections

In order to do an orderly shutdown, you need to close the connection by calling MQCloseConnection() and then to free the memory associated with the connection by calling the MQFreeConnection() function.

To get information about a connection, call the MQGetMetaData() function. This returns name and version information for the Message Queue product.