5.16.4 SEND

The SEND command is used to an XML message. If no XML data has been created, then an empty message is sent.

To include JMS message properties with the message, use the optional working list argument.

The first column is the property type, the second column is the property name and the third column is the property value. Property types are I for integer, B for Boolean, S for string, H for short, L for long, D for decimal, F for float and J for special JMS properties.

JMS properties (type J) use individual method calls on the JMS message object instead of the generic message.setStringProperty, message.setIntProperty and message.setBooleanPropery method calls.

The message identifier (MessageID) is returned in the JSMMSG field.

Syntax:

Command

Keyword

Value

Developer notes

SEND

MESSAGE

*BINARY

Message type. JMS BytesMessage.

*TEXT

Default. JMS TextMessage.

ENCODING

value.

Conditional. Used if message type is *BINARY
Default is UTF-8.

ARCHIVE

value

Optional. Archive file.

 

Example

SEND MESSAGE(*TEXT) #WRKLST(PRPTYP,PRPNME,PRPVAL)

 

SEND MESSAGE(*BINARY) #WRKLST(PRPTYP,PRPNME,PRPVAL)