New C sample programs

The mq-dev-patterns repository contains a collection of sample programs for IBM MQ. It has examples in a variety of programming languages and styles, working in a number of environments. There are programs showing use of the MQI (or equivalent), JMS, AMQP and REST interfaces. Towards the end of last year, we added a set of C sample programs. Rich wrote a little about them here, but I thought I’d expand on why they were written, and how they work.

Continue reading “New C sample programs”

This post was last updated on January 13th, 2025 at 08:58 am

Snippet 3 – Converting between MQRFH2 and properties

There are preferred MQI functions for dealing with message properties. But sometimes you may have requirements for converting between MQRFH2 and properties. This post came out of a question posed by a developer on another IBM product. Oddly, it was the same product (though a different person) that prompted a previous Snippet. And I was able to use the same basic framework from that test to demonstrate how simple it can be.

Continue reading “Snippet 3 – Converting between MQRFH2 and properties”

Decoding MQI constants

On Twitter, Michael asked: “any logic or hints on how to interpret the PCF parameter names returned as multiples from the com.ibm.mq.headers.pcf?” Which is a very good question but a proper answer is far too long to type there. There are several different ways that you can approach the problem, depending on what you are trying to do. So this post talks about decoding MQI constants.

Continue reading “Decoding MQI constants”

This post was last updated on March 21st, 2022 at 09:47 am

Warning: is it an error

Something I dealt with recently in independent exchanges with several different people was about programming with IBM MQ, and dealing with MQI errors that might not be errors. This post is a short discussion about the not-quite-failed status of a warning. Is it an error? What is the difference between MQI errors and warnings?

Continue reading “Warning: is it an error”

This post was last updated on November 15th, 2021 at 10:00 am