Questions tagged [pymqi]

PyMQI is a Python client to IBM MQ (formerly WebSphere MQ and MQSeries)

PyMQI is a Python client library for IBM MQ. It lets one build MQ applications in Python - both messaging and administration ones. A wide range of usage example lets one get started very quickly.

PyMQI can connect remotely to queue managers running on all major MQ platforms - Linux, Windows, z/OS, z/Linux, AIX, HP-UX and Solaris. It can be also compiled on all Linux, UNIX and Windows versions.

The library runs under Python 2.7 and 3.5+ and has been used in production by hundreds and thousands of organizations for 15+ years.

Its open-source license allows one to use it in open or proprietary projects. Commercial and community support are available.

Links

82 questions
0
votes
0 answers

MQI connection string equivalent in C# XMS

When using any of the language bindings based on MQI it's possible to define a connection string with multiple host / ports and the MQI Client layer will attempt to connect to each in turn, returning the first connection made. eg. in Python this…
chughts
  • 4,210
  • 2
  • 14
  • 27
0
votes
0 answers

How to set JMS Properties while sending message via pymqi to IBM MQ

I want to set some jms properties while sending a message using pymqi to support different message parameters. Below code is for reference only import pymqi queue_manager = 'QM1' channel = 'DEV.APP.SVRCONN' host = '127.0.0.1' port = '1414'…
0
votes
1 answer

raise MQMIError(rv[-2], rv[-1]) pymqi.MQMIError: MQI Error. Comp: 2, Reason 2085: FAILED: MQRC_UNKNOWN_OBJECT_NAME

I am newbie to python. I am trying to connect to my IBM MQ and put some messages in them through the Python code. import pymqi queue_manager = 'XXXXXX' channel = 'XXXXX' host = 'XXXXX' port = 'XXXX' conn_info = '%s(%s)' % (host, port) qmgr =…
0
votes
1 answer

It's posible to get a synchronous response using put method?

I'm connecting to a remote mq queue using pymqi. I'm using put method as normal but I would like to know if there are some way to set something symilar as JMSReplyTo on JMS system to get a synchronous response of my message. The request queue and…
GuillemOF
  • 1
  • 2
0
votes
2 answers

How to connect to mq queue with python and bindings file?

I'm trying to connect with a remote MQ queue/serie and I only have a .bindings file to do it. I'm trying the python library "pymqi" but I can't connect using binding mode. Does someone knows what should I do or where should I place the file in order…
GuillemOF
  • 1
  • 2
0
votes
0 answers

PYMQI return data type issue

I am trying the get IBM MQ Messages out of Queue Manager by reading the queue "SYSTEM.ADMIN.COMMAND.EVENT". I am getting the following response when I print the message. How do I convert the following message into a user friendly format after…
Thobs More
  • 63
  • 11
0
votes
0 answers

pymqi commands are all blocked

I have the following environment: Redhat Python 2.7 I have a module which reads messages from an IBM MQ and then process them. The scenarios is as follows: Start the application Simulate connection is lost with the VM where the IBM MQ resides by…
0
votes
1 answer

Unresolved externals during python pymqi installation

I'm installing the pymqi package on Win7 pip install pymqi-1.7.2.tar.gz but all I get is an error LINK : error LNK2001: unresolved external symbol PyInit_pymqe Here is full listing from the cmd: pip install pymqi-1.7.2.tar.gz Processing…
0
votes
2 answers

Where can I find a simple IBM MQ Client for Windows

The Context: I'm hoping I'm missing something simple. I am a novice in IBM MQ My organisation distributes XML messages via IBM Websphere MQ. Each message represents a record that I simply want to save to a file and clear from the queue. The current…
Ewanw
  • 728
  • 11
  • 30
0
votes
1 answer

can I use pymqi to connect to an IBM MQ multi-instance queue manager

Using PyMQI, which is fine on IBM MQ Single instance queues, but does anyone know if I can pass dual IP Addresses and Ports on the connection string and if the MQ CLient under the hood handles the IBM MW Multi Instance queue management ?
Tim C
  • 11
0
votes
0 answers

Installing python lib pymqi for MQ

I am trying to setup python pyqmi. I installed it for python 2.7. Post this when I do "import pymqi" and run it, I see error as- Traceback (most recent call last): File "", line 1, in File "C:\Python27\lib\pymqi.py", line 104, in import…
0
votes
0 answers

error Installing pymqi on 64bit windows machine

After struggling a lot to build pymqi ,i finally built it. but now when i import the pymqi library its throwing an error message : >>> import pymqi Traceback (most recent call last): File "", line 1, in File "pymqi\__init__.py",…
Ramkumar V
  • 21
  • 5
0
votes
1 answer

pymqi.MQMIError: MQI Error. Comp: 2, Reason 2067: FAILED: MQRC_SELECTOR_ERROR

I am trying to read some MQ varaibles using python, for example : print('High Queue depth:', qq.inquire(pymqi.CMQC.MQIA_HIGH_Q_DEPTH)) when I run it I got this error : File "depth.py", line 32, in print('High Queue depth:',…
Donia
  • 143
  • 1
  • 2
  • 10
0
votes
2 answers

How to over come Python ImportError: libmqic_r.so: cannot open shared object file: No such file or directory

I have IBM MQ Installed in /opt/mqm/. This has all the Header files and libraries and specifically the libmqic_r.so file. [aa@aa packages]# find /opt/mqm/ -name…
myloginid
  • 1,463
  • 2
  • 22
  • 37
0
votes
1 answer

Unable to build pymqi on window - errors compiling

I am trying to build and install pymqi, but I am getting a lot of errors trying to compile it. I have done the following: Get and install MinGW gcc Create libpython2?.a Using instruction from: https://pythonhosted.org/pymqi/mingw32.html When I try…
Vivian Yung
  • 79
  • 1
  • 9