Creating an IBM MQ service by using a properties file
You can create an IBM® MQ service by using either the API toolkit or passing a properties file to the build toolkit.
The preferred method is to use the API Toolkit as described in Creating a CICS, IMS or IBM MQ service.
When an IBM MQ service provider service archive file is
generated and deployed to the IBM z/OS Connect
runtime, more properties can be specified in the server.xml
configuration file to
take effect at run time. Some of these properties can override the properties that were provided to
the build toolkit. See IBM MQ override
properties.
For more information about running the build toolkit, see Generating service archives for DevOps.
Property name | Importance | Property description |
---|---|---|
provider |
Mandatory | Used to select the plug-in. Must be the value mq. |
name |
Mandatory | The name of the service. Can be any string value. For example, service1. |
version |
Mandatory | The version of the service. Can be any string value. For example, 1.0. |
description |
Optional | A description of the service. |
language |
Optional | If data transformation is required, this property defines the type of language structure that
is used. If this property is specified, the following conditions apply:
|
languageStructureCodePage |
Optional | Specifies the Java™ character set name for the source
language structures that are specified by requestStructure or
responseStructure . For example, for IBM Latin-1 EBCDIC, the value is IBM037. This
property is only applicable if the requestStructure and
responseStructure are members of a partitioned data set. When this property is
used, both the requestStructure and responseStructure must name
members in the same partitioned data set. |
requestStructure |
Optional | A path to a language structure to be used as the request payload. This attribute must be
specified when the language property is specified with
messagingAction set to mqput, or the
replyDestination property is specified.The language structure must use the syntax of the language property. For example, if language=COBOL it must be a valid COBOL copybook. See Note. |
responseStructure |
Optional | A path to a language structure to be used as the response payload. This attribute must be
specified when the language property is specified with
messagingAction set to mqput, or the
replyDestination property is specified.The language structure must use the syntax of the language property. For example, if language=COBOL it must be a valid COBOL copybook. See Note. |
operationName |
Optional | This property must be specified when the language property is specified. It
defines the operation name that is used in the generated JSON schema. This property can be up to 8
characters long. |
ccsid |
Optional | This property is only supported if the language property is specified. It
defines the integer code page of the data structures that are generated by the IBM z/OS Connect data transformation code. The default
value is 37. |
connectionFactory |
Mandatory | Defines a JNDI name that is used to locate a connection factory that connects to a z/OS queue manager on the same LPAR as the IBM z/OS Connect server or on a different LPAR. For more information, see JMS connection factory in the WebSphere® Application Server for z/OS Liberty documentation. |
destination |
Mandatory |
Defines a JNDI name that is used to locate an IBM MQ queue or topic. For one-way services, if For two-way services, request messages are sent to this queue. For more information, see the following topics in the WebSphere Application Server for z/OS Liberty documentation: JMS Queue (jmsQueue) if the destination is a queue or JMS Topic (jmsTopic) if the destination is a topic. |
replyDestination |
Optional | Defines a JNDI name that is used to locate a queue that contains response messages for two-way services. If specified, the service is a two-way service. This property is configured in the same way as the destination property. |
expiry |
Optional | Specifies the expiry time of messages that are sent by the IBM MQ service provider. If set, the value is an integer that describes how long the message
is available in milliseconds before it expires. By default messages do not expire. Setting
Negative values mean that messages never expire. The default value is -1. REST clients can override |
waitInterval |
Optional |
Specifies how long, in milliseconds the IBM MQ service provider waits for messages to arrive on a queue. This property is only valid if If If |
replySelection |
Optional | Defines how a two-way service locates reply messages on the queue that is referenced by the
replyDestination property. If replySelection is used with a
one-way service, it is ignored. The following values are valid:
|
selector |
Optional | Defines a valid JMS message selector that is used to locate messages from the queue
referenced by the destination attribute. Only valid with one-way services that have
messagingAction=mqget defined. For more information, see Message selectors in JMS in the IBM MQ documentation. |
persistence |
Optional | Describes the persistence of messages that are sent to the queue referenced by the destination property. The default value is false, indicating that messages are non-persistent. If set to true, messages are sent as persistent. |
mqmdFormat |
Optional | Completes the format field of the MQMD header in messages that are sent by the IBM MQ service provider. Only supported when the
language property is specified. If not specified, then messages are sent with a
blank format. |
messagingAction |
Optional | If the service is used to send messages, the value must be mqput. If the service is used to receive messages, the value must be mqget. If this property is set, the service is a one-way service. |
requestStructure
and responseStructure
can be a UNIX System
Services file or a member of a partitioned data set. To specify a member of a partitioned data set,
use the syntax //'partitionDatasetName(member)'. See the
languageStructureCodePage
property to indicate the code page of the z/OS partitioned data set member.