NonStop JMS C++ API Programmer's Guide

NSJMS C++ API Classes and Methods
NonStop Server for Java Message Service C++ API Programmer’s Guide526459-002
4-4
ObjectMessage Class
ObjectMessage Class
The ObjectMessage class extends the Message class and sends a message that
contains a serializable Java object. If the ObjectMessage was published by an NSJMS
client, this message body contains a serializable Java object. Although, the message
body is returned as a byte array instead of as a Java object.
setBytesProperty
Sets a byte array property value with the specified name into the
message.
setDoubleProperty
Sets a double property value with the specified name into the
message.
setFloatProperty
Sets a float property value with the specified name into the
message.
setIntProperty
Sets an integer property value with the specified name into the
message.
setJMSCorrelationID
Sets the correlation ID for the message.
setJMSDeliveryMode
Sets the DeliveryMode value specified for this message.
setJMSDestination
Sets the Destination object for the message.
setJMSExpiration
Sets the expiration value for the message.
setJMSMessageID
Sets the message ID for the message.
setJMSPriority
Sets the priority level for the message.
setJMSReplyTo
Sets the Destination object to which a reply to this message
should be sent.
setJMSTimestamp
Sets the timestamp for the message.
setJMSType
Sets the message type identifier for the message.
setLongProperty
Sets a long property value with the specified name into the
message.
setShortProperty
Sets a short property value with the specified name into the
message.
setStringProperty
Sets a string property value with the specified name into the
message.
ObjectMessage Methods Description
readBytes
Read a portion of the bytes-message stream.
writeBytes
Write a byte array to the bytes-message stream.
Message Methods Description (page 2 of 2)