public class JmsObjectMessage extends JmsMessage implements ObjectMessage
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
Constructor and Description |
---|
JmsObjectMessage(ObjectMessage message,
JmsSession session)
Create a new wrapper
|
Modifier and Type | Method and Description |
---|---|
Serializable |
getObject()
Gets the serializable object containing this message's data.
|
void |
setObject(Serializable object)
Sets the serializable object containing this message's data.
|
acknowledge, clearBody, clearProperties, equals, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, hashCode, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
acknowledge, clearBody, clearProperties, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty
public JmsObjectMessage(ObjectMessage message, JmsSession session)
message
- the messagesession
- the sessionpublic Serializable getObject() throws JMSException
ObjectMessage
getObject
in interface ObjectMessage
JMSException
- if the JMS provider fails to get the object
due to some internal error.MessageFormatException
- if object deserialization fails.public void setObject(Serializable object) throws JMSException
ObjectMessage
ObjectMessage
contains a snapshot of the object at the time setObject()
is called; subsequent modifications of the object will have no
effect on the ObjectMessage
body.setObject
in interface ObjectMessage
object
- the message's dataJMSException
- if the JMS provider fails to set the object
due to some internal error.MessageFormatException
- if object serialization fails.MessageNotWriteableException
- if the message is in read-only
mode.Copyright © 2018 JBoss by Red Hat. All rights reserved.