JMS Send Message (Magic xpa 3.x)
The JMS Send Message program sends a message to a messaging queue. The parameters and return value for the JMS Send Message program are:
|
|
Queue Handle
|
Numeric (18). Input. The numeric value that was returned from the JMS Open Destination program.
|
Message type
|
Alpha (1). The valid values are:
-
T: Text message. A Java language string object, such as the contents of an XML file.
-
B: Bytes message. A stream of uninterpreted bytes, such as a BLOB.
-
M: Map message. A set of name or value pairs, with string object names and primitive type values in the Java programming language. The order of the entries is irrelevant. See also Buffer Table.
-
S: Stream message. A stream of Java defined primitive values. The supported primitive data types are: Boolean, Byte, Short, Char, Int, Long, Float, Double, String, Byte Array. The order of the data is important. See also Buffer Table.
-
O: Object message. A Java serializable object.
-
H: Header message. This message type only contains header fields and properties, and is useful when no message body is required.
|
Message
|
BLOB input that contains the message data. If the Message type is Map message or Stream message, the Message BLOB must contain the memory table described in the Buffer Table topic.
|
Correlation Id
|
Alpha (200). Input optional. For Send / Reply implementations.
|
Message Id
|
Alpha (200). Output. This is the Message Id as returned by JMS.
|
Return value
|
Numeric. 0 for success and a negative value for failure.
|