Salesforce

WMQ Send Message (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

WMQ Send Message (Magic xpa 3.x)

The WMQ Send Message program sends a message to a messaging queue. See also WMQ.Quick Send.

The parameters and return value for the WMQ Send Message program are:

Parameter

Description

Queue Handle

Numeric (18). Input. The numeric value that was returned from the WMQ.Open Destination program

Message

BLOB input, containing the message data.

Buffer Identifier index

Numeric (4). Input. When this parameter evaluates to zero, the message must be in the BLOB. If it evaluates to greater than zero, the message structure and values are in the memory table, the Buffer Table, and this is the index. For more information, see Buffer Table.

Transacted Msg

Logical (5). Input. When True, this will be part of a transaction. If there is no open transaction, WebSphere MQ automatically begins one.

Message type

Numeric (1). Input. The Message Type parameter specifies the message type:

  • 0: Message (MQ Datagram)

  • 1: Request

  • 2: Response

The component sends messages according to the specified Message Type. This parameter is not relevant for Publish.

Broadcast This Message

Logical (5). Input. If a queue handle is not sent, i.e. zero, this should be True, and then the same message will be sent to all queues that are open for broadcasting. For more information, see the explanation on the Broadcast parameter in the section on the Open program. When the queue handle is sent and this value is True, an error is generated. If a queue handle is not sent and the value is False, an error is also generated.

Retain

Logical (5). The valid values are:

  • False: The message is not retained for future subscribers.

  • True: The message is retained for future subscribers.

This parameter is only relevant for Publishing.

Correlation ID

BLOB. Optional input and output. For input, this parameter specifies a specific Correlation ID. For output, this parameter receives the Correlation ID of the message that was sent.
For Publish/Subscribe mode, identifies subscriptions for a specific subscriber in a shared queue.
Note: The maximum size is 24 bytes.

Message ID

BLOB. Optional input and output. For input, this parameter specifies a specific Message ID. For output, this parameter receives the Message ID of the message that was sent.
Note: The maximum size is 24 bytes.

Reply 2 Queue Manager

Alpha (48). Optional input. The name of the Queue Manager where the replies will be sent. This parameter is valid for Request and Publishing messages.

Reply 2 Queue Name

Alpha (48). Optional input. The name of the queue where the replies should be sent. This parameter is valid for Request and Publishing messages.

Message Format

Numeric (2). Optional input. This defines the message format as described below:

  • 0: No format (default)

  • 1: MQ Series performs the conversion (MQSTR)

  • 2: Admin (MQADMIN)

  • 3: CHANNEL_COMPLETED (MQCHCOM)

  • 4: Dead letter header (MQDEAD)

  • 5: Trigger (MQTRIG)

  • 6: XMIT_Q_Header (MQXMIT)


Return value

Numeric. 0 for success and a non-zero value for failure.

Reference
Attachment 
Attachment