You can refer the IBM Knowledge centre documentation for the mqqueueconnection factory . Not sure whether this much helpful for your ask, but please refer.
https://www.ibm.com/docs/en/ibm-mq/9.4.x?topic=environment-examples-using-connection-pool
https://www.ibm.com/docs/en/ibm-mq/9.4.x?topic=messaging-mqqueueconnectionfactory