The python samples are based on https://dsuch.github.io/pymqi/ and have been tested with python 2.7.10 and 3.5.1
Python PyMQI library uses the IBM MQ C client libraries through the MQI interface.
The library needs to be compiled with a C compiler which you need to have installed in your development environment.
For example, on MacOS we used XCode
, on Windows the Desktop development with C++
module inside Visual Studio and on Ubuntu the gcc
GNU Compiler Collection.
Install/unzip IBM MQ client
IBM MQ MacOS toolkit for developers download
Add
/opt/mqm/bin
and
/opt/mqm/samp/bin
, to the PATH by editing /etc/paths
export DYLD_LIBRARY_PATH=/opt/mqm/lib64
Windows MQ client v 9.1.1.0 download
Linux Ubuntu MQ client v 9.1.1.0 download
To run the examples cd to the Python directory, and install the prerequsites by running :
pip install pymqi
python basicput.py
and
python basicget.py
python basicpublish.py
and
python basicsubscribe.py
python basicrequest.py
and
python basicresponse.py