Class: ObjectMessage

ObjectMessage

An ObjectMessage object is used to send a message that contains an object as its payload. Contained objects must have a corresponding Java object on the JMS Extender, and their class fully-qualified name must be specified.

new ObjectMessage()

This method is not meant to be used directly. Creates an ObjectMessage object that is used to send a message that contains an object as its payload. Contained objects must have a corresponding Java object on the JMS Extender, and their class fully-qualified name must be specified.

Extends

Method Summary

getClassFQN
Returns the fully-qualified class name of the object that will be sent as the payload of this message.
getObject
Returns the object that will be sent as the payload of this message.
setClassFQN
Sets the fully-qualified class name of the object that must be sent as the payload of this message.
setObject
Sets the object that must be sent as the payload of this message.

Inherited Methods

Method Detail

getClassFQN() → {String}

Returns the fully-qualified class name of the object that will be sent as the payload of this message.
Returns:
Type
String

getObject() → {Object}

Returns the object that will be sent as the payload of this message.
Returns:
Type
Object

setClassFQN(classFQN)

Sets the fully-qualified class name of the object that must be sent as the payload of this message.
Parameters:
Name Type Description
classFQN String fully-qualified class name of the object to be sent as payload.

setObject(object)

Sets the object that must be sent as the payload of this message.
The fully-qualified class name of the object must be specified using the ObjectMessage#setClassFQN method.
Parameters:
Name Type Description
object Object object to be sent as payload.