IBM MQ Connector

  • ol.mq.project.{projectName}.

Property

Type

Description

Property

Type

Description

default-queue-manager

String

Queue manager.

expiry

int

Expiry time for the message in the queue in milliseconds.

init-buffer-fill-value

byte

Default value to populate buffers before inserting values from entities.

live

boolean

When live is true (default), we work based on the connector properties.

When live is false, we go to mock-properties to try and use a mock based on the configuration.

message-format

enum MqMessageFormat

Choose between enum MqMessageFormat, default: MQFMT_STRING.

message-options

List<enum MqGetMessageOptions>

MQMessage options.

message-type

enum MqMessageType

Choose between enum MqMessageType, default: MQMT_DATAGRAM.

mock

RpcMockProperties

Mock properties for MQ.

open-options

List<enum MqOpenOptions>

MQQueue open options.

payload-length

int

Will send hardcoded payload length regardless of entity size (e.g. entity is 400, payload length is 5000, we will pad with 0x00 the buffer to reach 5000 on each request).

receive-queue

String

Name of the output queue.

send-queue

String

Name of the input queue.

space-char

byte

Set value of space char.

spaces-are-null

boolean

Will treat space (0x40 in ebcdic for example (depends on code-page)) as null instead of blanks.

thread-pool-size

int

Size of pool.

timeout

int

A timeout of waiting for a response message in milliseconds.

treat-empty-string-as-low-value

boolean

Feel empty/null string with low_value(00) instead of space(40).

use-xml-content

boolean

The content of the message will be represented as XML content.

base-packages

List<String>

Which packages spring will scan for entities.

channel

String

MQ channel.

code-page

String

Legacy system code page.

hostname

String

Legacy system hostname.

password

String

Legacy system password.

port

int

Legacy system port.

user

String

Legacy system user.

  • RpcMockProperties - ol.cics.project.{projectName}.mock.

Property

Type

Description

Property

Type

Description

trail-path

String

Relative path to trail file (ex: /trails/demo_session.trail).

save-trail

boolean

Indicates if to save execution data into trail file. For now it is implemented only for RPC.

save-trail-path

String

Relative path to place where new trail file is saved (ex: /trails/save.trail).

verify-send

boolean

When working in liveSession false it indicates whether to compare input.

For more info about enums: MqMessageFormat, MqGetMessageOptions, MqMessageType, MqOpenOptions please visit the IBM knowledge center.

Additional Configuration

Additional configuration can be done by following IBM’s documentation: https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_9.1.0/com.ibm.mq.con.doc/q016840_.htm

For example to set the conenction timeout of the queue manager, a file named mqclient.ini need to be created in the user home folder:

TCP: Connect_Timeout=5