0

[pymqi] What to do in simple program that does an IBM MQ PUT to remotely connect via the MQSERVER environment variable? . Hello! I am able to find short samples that use PyMQI and the connect method has hardcoded the name of the queue manager, the server-connection channel and the host(port). However, I want to have a generic connect method and instead, pass the connection information by setting the MQSERVER environment variable. . Is there anything that needs to be configured or setup? I looked at the available documentation but I could not find references about how to do this. . My hope is that if the MQSERVER issue is resolved, then I would like to use the 2 environment variables for reading a CCDT file: MQCHLLIB and MQCHLTAB. . Thank you in advance!

I setup the MQSERVER variable to point to a remote queue manager. This works fine with a C-based example amqsputc. But I experimented with different ways to specify the connect() method in my small pymqi program and I have captured the MQ client traces and I see that the MQSERVER is read, but the contents is ignored by the connect().

  • In other forums I found some useful hints and this is what I had to do to have a successful test: 1) To allow for the MQ client shared libraries to do remote connections, it is CRITICAL to setup the following environment variable: export MQ_CONNECT_TYPE=CLIENT . 2) You must use the methods highlighted below. This will tell the MQ client shared libraries to do the proper handling of MQSERVER and the CCDT JSON files. (1st line) queue_manager = pymqi.QueueManager(None) (2nd line) queue_manager.connect_with_options(queue_manager_name) – AngelitoElMimo Feb 15 '23 at 13:46

0 Answers0