public class JMSObjectMessage extends JMSMessage implements javax.jms.ObjectMessage
JMSMessage and adds a body containing a single Serializable Java Object.
If more than one Java Object must be sent, one of the Collection classes can be used.
When a client receives an ObjectMessage, it is in read-only mode. If a client attempts to write to the message at this point, a MessageNotWriteableException is thrown. If clearBody() is called, the message can then be both read from and written to.
To create an object message please call Session.createObjectMessage(). Do not call the default constructor.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
sccsid
The SCCSID which is expanded when the file is extracted from CMVC
|
| Constructor and Description |
|---|
JMSObjectMessage()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Serializable |
getObject()
Get the serializable Object containing this message's data.
|
void |
setObject(java.io.Serializable object)
Sets the serializable Object containing this message's data.
|
acknowledge, clearBody, clearProperties, getBody, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, isBodyAssignableTo, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, toString, updateFromMessageequals, getClass, hashCode, notify, notifyAll, wait, wait, waitacknowledge, clearBody, clearProperties, getBody, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, isBodyAssignableTo, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringPropertygetDelegatepublic static final java.lang.String sccsid
public JMSObjectMessage()
To create an object message please call Session.createObjectMessage().
Do not call this default constructor.
public java.io.Serializable getObject()
throws javax.jms.JMSException
getObject in interface javax.jms.ObjectMessagejavax.jms.JMSException - if an internal error occurspublic void setObject(java.io.Serializable object)
throws javax.jms.JMSException
setObject in interface javax.jms.ObjectMessageobject - the message's datajavax.jms.JMSException - if the message is not writable or if some internal error occursjavax.jms.MessageFormatException - if object serialization fails