Skip to content
iQBus HomeDocumentationBlogContact
Updated November 13, 2026
Adapters/MQ Series adapter
Adapter

MQ Series adapter

Two adapters for IBM MQ. The Listener gets messages from a queue and publishes them to the bus; the Caller puts messages on a queue. The Authentication holds the queue manager, the channel and TLS.

ADAPTER · RECEIVE · SEND MQ Series IBM MQ: the Listener gets from a queue, the Caller puts to one DIRECTION ↓ ↑ Receive & Send MODES One-way · two-way on Caller AUTHENTICATION MQ Series Connection EDITION All editions

IBM MQ is the longest-running enterprise message broker in production. iQBus reaches it with two adapters that share one connection model: the MQ Series Listener goes on a receive port and the MQ Series Caller on a send port. Neither holds a host or a credential. That belongs to the Authentication, so pointing a port at another queue manager is a change of Authentication and nothing else.

MQ SERIES LISTENER Receive port, one-way Gets messages from one queue Publishes one bus message per MQ message Code page from the message header Static Authentication only MQ SERIES CALLER Send port, one-way or two-way Puts each bus message on one queue Connected queue manager, or a remote one Two-way continues the flow, reads no reply Static or Dynamic Authentication
!
Two things bite people, so they are here rather than buried below. Binary messages: a Listener needs a message type with the BIN format to carry a file unchanged; under a text type, binary content is carried as its Base64 text. A Caller writes a BIN message as its original bytes, with no setting to change; set Format to None so the receiving application sees it as binary. Two-way Caller loops: a two-way Caller publishes its response with the port's Adapter Message Type, so if the port's own subscription matches that type, the response is picked up again and again. Give the response a type the subscription does not match.

Both adapters use the MQ Series Connection Definition, but an Authentication is made for one adapter: one created for the MQ Series Listener cannot be picked on a Caller, and the other way round. A Listener and a Caller on the same queue manager therefore each have their own Authentication with the same connection values.

QUEUE MANAGER QMGR1 at mqhost(1414), the Connection Name CHANNEL APP.SVRCONN QUEUE APP.IN.ORDERS a single queue per adapter binding
Connection
FieldDefaultWhat it does
Connection NameRequiredThe queue manager's listener as host(port), for example mqhost.example.com(1414).
Queue ManagerRequiredThe queue manager name, for example QMGR1.
ChannelRequiredA server-connection channel, for example APP.SVRCONN. Create one for iQBus rather than using the default channels.
User NameEmptyThe MQ user. It needs the permissions listed below and must not be an administrator or a member of mqm.
PasswordEmptyThe MQ user's password.
Use TLSOffTurn it on to show the TLS fields below.
ReconnectQueueManagerQueueManager reconnects to the same queue manager after a dropped connection or a restart. Disabled does not.
TLS
FieldDefaultWhat it does
Cipher SpecTLS_RSA_WITH_AES_128_CBC_SHA256Must match the channel's CipherSpec (SSLCIPH). The list: TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, ECDHE_RSA_AES_128_GCM_SHA256, ECDHE_RSA_AES_256_GCM_SHA384, TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384.
Peer NameEmptyThe distinguished name the queue manager's certificate must carry, for example CN=QMGR1. iQBus checks it before anything is sent, and a mismatch refuses the connection. Empty skips the check.
Trusted CA CertificatesEmptyThe PEM certificate of the CA that signed the queue manager's certificate, or the queue manager's own certificate when it is self-signed. Paste it with its line breaks.
Client Certificate (PKCS#12, base64)EmptyFor mutual TLS only: the client certificate and its private key as a PKCS#12 file, Base64 encoded.
Client Certificate PasswordEmptyThe password of that PKCS#12 file.

One-way TLS needs Use TLS, the channel's Cipher Spec and Trusted CA Certificates. Mutual TLS, for a channel with SSLCAUTH(REQUIRED), adds the client certificate and its password; the queue manager's key repository must trust that certificate.

Auth Config Type is Static on the Listener and Static or Dynamic on the Caller. A receive port has no message to resolve a credential from, so every receive adapter offers Static alone. With Dynamic, the Caller resolves the Authentication name per message from the Auth Resolution Key binding, so one port can put to several queue managers.


Give the MQ user only what its ports use. This is the confirmed minimum; anything less is refused by the queue manager with reason 2035.

MQ objectListenerCallerNotes
Queue managerconnect, inqconnectThe Listener is refused without inq.
The Listener's queueget, inq
The Caller's queueput
Backout QueueputWhen On Failure is Backout.
Transmission queueputOnly with Remote Queue Manager. MQ checks the transmission queue object, which is often named after the remote queue manager.
Browse buttondsp on the queue manager; get, inq on SYSTEM.DEFAULT.MODEL.QUEUE; put, inq on SYSTEM.ADMIN.COMMAND.QUEUEOnly to list queues in the port dialog.
The setmqaut commands, for a queue manager on Windows

Queue manager QMGR1, MQ user iqbusapp. Replace the names with yours and leave out the lines for features you do not use.

CMD
setmqaut -m QMGR1 -t qmgr -p iqbusapp +connect +inq +dsp
setmqaut -m QMGR1 -n APP.IN.ORDERS -t q -p iqbusapp +get +inq
setmqaut -m QMGR1 -n APP.OUT.ORDERS -t q -p iqbusapp +put
setmqaut -m QMGR1 -n APP.BACKOUT -t q -p iqbusapp +put
setmqaut -m QMGR1 -n SYSTEM.DEFAULT.MODEL.QUEUE -t q -p iqbusapp +get +inq
setmqaut -m QMGR1 -n SYSTEM.ADMIN.COMMAND.QUEUE -t q -p iqbusapp +put +inq
setmqaut -m QMGR1 -n QMGR2 -t q -p iqbusapp +put

The last line is for a Caller that puts to the remote queue manager QMGR2 through a transmission queue of the same name.


The Listener keeps its connections open, gets each message from the queue and publishes it to the bus as one message. It is one-way: nothing is sent back to MQ.

QUEUE Queue Name get MQ SERIES LISTENER Consumers read in parallel Ordered: one consumer, queue order Code page: header, or CCSID Override BIN type: kept exactly as received publish Bus one message per MQ message cannot hand over On Failure Backout: moved intact to the Backout Queue
The dialog, in order
FieldDefaultWhat it does
Auth Config TypeStaticThe only option on a receive port.
Auth ConfigRequiredAn MQ Series Connection Authentication made for the MQ Series Listener.
Queue NameRequiredThe queue to read. The Browse button lists the queues the MQ user can see.
Wait Interval (sec)30How long one get waits on an empty queue before the next one starts.
OrderedOffOn: one consumer opens the queue exclusively and reads it in queue order. The messages still travel the bus and the send ports independently, so the order downstream is not guaranteed.
ConsumersEmptyHow many connections read the queue at the same time.
On FailureBackoutWhat happens to a message the Listener cannot hand to iQBus, for example one larger than Max Message Size: Backout, DeadLetter or Complete. Backout moves it intact to the Backout Queue; Complete removes it and discards it. Either way the messages behind it keep flowing.
Backout QueueEmptyWhere Backout moves the message. The MQ user needs put on it.
CCSID OverrideEmptyEmpty: the code page comes from each message's header. A CCSID here makes the queue manager convert every message to that code page on the get, and a character the code page does not have is replaced.
Max Message Size (KB)10240A larger message goes to On Failure instead of the bus.
Text, binary and code pages

The port's Adapter Message Type decides how the body reaches the bus. With a type of the BIN format, the message is stored exactly as it was received, whatever its content, and a Tracking download returns the original bytes. With any other format the body is read as text in the code page of the message header (or CCSID Override), so 1252, 437 and EBCDIC 37 all arrive as correct text. Content that is not valid text under a text type is published as its Base64 string; use a BIN type for files.

The values of the MQ message header are available to subscriptions and Variable assignments under {{Config.MQSeriesListener.*}}; the expression editor lists them as you type.


The Caller puts each message that reaches its send port on one queue. Two-way does not read a reply: after a successful put the Caller publishes the message back to the bus, with its original body and the port's Adapter Message Type, so the flow can continue after the put. Reply To Queue and Reply To Queue Manager are only written into the MQ message for the application that receives it.

The dialog, in order
FieldDefaultWhat it does
Auth Config TypeStaticStatic picks one Authentication. Dynamic resolves it per message from the Auth Resolution Key binding.
Auth ConfigRequiredAn MQ Series Connection Authentication made for the MQ Series Caller.
Queue NameRequiredThe queue to put to. With Remote Queue Manager, the queue's name on that queue manager.
Remote Queue ManagerEmptyAnother queue manager to deliver to through the connected one. The put goes to the transmission queue, so the MQ user needs put on it.
PersistenceAsQueueDefaultAsQueueDefault, Persistent or NotPersistent.
PriorityEmpty0 to 9.
Expiry (sec)RequiredHow long the message may wait on the queue, in seconds.
FormatStringString marks the body as text. None marks it as binary; use it for BIN messages.
Character Set (CCSID)1208The code page the text is written in; 1208 is UTF-8, and 1252 and EBCDIC 37 work too. The value is yours to get right: iQBus does not check it, so use a CCSID the queue manager supports, or every send fails. A character the code page cannot represent fails that send.
Message IDEmptySee the identifier rules below.
Message ID FormatHexHex or Text.
Correlation IDEmptySee the identifier rules below.
Correlation ID FormatHexHex or Text.
Reply To QueueEmptyWritten into the message for the receiving application. The Caller does not read it.
Reply To Queue ManagerEmptyThe same, for the reply queue's queue manager.
User PropertiesEmptyKey and value rows, written as MQ message properties. How a receiving application sees them depends on the queue's PROPCTL setting.
Message ID and Correlation ID
FormatWhat you enterWhat MQ receives
HexAn even number of hex digits, up to 48Those bytes, padded with zeros to 24 bytes
TextUp to 24 bytes of UTF-8 textThose bytes, padded with zeros to 24 bytes
Field emptyNothingMessage ID: generated by MQ. Correlation ID: all zeros.

Message size. Bodies of 4,000,000 bytes go through. User Properties count against the queue's maximum message length (MAXMSGL), so with properties keep the body a little under it; a body of exactly MAXMSGL fails with reason 2010.

After the put. Tracking shows MQSeriesCaller.MessageId, the Message ID as hex, and MQSeriesCaller.QueueName, so a message can be matched to the one on the MQ side.


What happensWhat iQBus does
The Listener's login is rejected (reason 2035), or its TLS configuration is wrong (reason 2402)One attempt, then the port stops and the notification bell names the reason. No repeated logins, so the MQ account is not locked out. Fix the port or its Authentication and start the port again. Listener failures do not raise Activity Notifications.
The queue manager restarts or drops the connectionWith Reconnect set to QueueManager, both adapters reconnect by themselves and carry on.
A Caller put failsThe port's Retry Count and Interval apply first; then the message is suspended in Tracking. The reason is in Tracking: under All, expand the run and open the step just before the Suspended step (210), usually the adapter call (100). Its Error tab shows the MQ reason, for example MQ reason 2398 (MQRC_SSL_PEER_NAME_MISMATCH).

That is the MQ Series adapter

A Listener that gets from one queue, a Caller that puts to one, and an Authentication per adapter that holds the queue manager, the channel and TLS. Back to Adapters.