ibm-messaging / mq-dev-patterns

Code samples and messaging patterns for IBM MQ developers
Apache License 2.0
191 stars 165 forks source link

Updated the samples with respect to ibmmq version 2.0.2 #215

Closed tanaysingh3484 closed 8 months ago

tanaysingh3484 commented 9 months ago

I have updated the samples with the required changes so that they can run with the latest version of the ibmmq package, i.e. version 2.0.2

The changes which I have made are :

chughts commented 9 months ago

RE:

the mqrc 2500 error was being thrown, which after some research I found that it is due to two threads trying to connect to the same queue manager and queue. The solution for this was to add the mq.Ctl(hConn,mq.MQC.MQOP_SUSPEND)

Looks like this is happening in the responder, and the code is not waiting for the get promise to complete before attempting the put response.

We need to trace without the mq.MQC.MQOP_SUSPEND and mq.MQC.MQOP_RESUME to verify if the put promise is being resolved too early.

chughts commented 8 months ago

Needs significant rework.