org.jboss.resource.adapter.jms
Class JmsObjectMessage

java.lang.Object
  extended byorg.jboss.resource.adapter.jms.JmsMessage (src) 
      extended byorg.jboss.resource.adapter.jms.JmsObjectMessage
All Implemented Interfaces:
Message (src) , ObjectMessage (src)

public class JmsObjectMessage
extends JmsMessage (src)
implements ObjectMessage (src)

A wrapper for a message


Field Summary
 
Fields inherited from interface javax.jms.Message (src)
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
JmsObjectMessage(ObjectMessage (src)  message, JmsSession (src)  session)
          Create a new wrapper
 
Method Summary
 java.io.Serializable getObject()
          Gets the serializable object containing this message's data.
 void setObject(java.io.Serializable object)
          Sets the serializable object containing this message's data.
 
Methods inherited from class org.jboss.resource.adapter.jms.JmsMessage (src)
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jms.Message (src)
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
 

Constructor Detail

JmsObjectMessage

public JmsObjectMessage(ObjectMessage (src)  message,
                        JmsSession (src)  session)
Create a new wrapper

Parameters:
message - the message
session - the session
Method Detail

getObject

public java.io.Serializable getObject()
                               throws JMSException (src) 
Description copied from interface: ObjectMessage (src)
Gets the serializable object containing this message's data. The default value is null.

Specified by:
getObject in interface ObjectMessage (src)
Returns:
the serializable object containing this message's data
Throws:
JMSException (src) - if the JMS provider fails to get the object due to some internal error.

setObject

public void setObject(java.io.Serializable object)
               throws JMSException (src) 
Description copied from interface: ObjectMessage (src)
Sets the serializable object containing this message's data. It is important to note that an 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.

Specified by:
setObject in interface ObjectMessage (src)
Parameters:
object - the message's data
Throws:
JMSException (src) - if the JMS provider fails to set the object due to some internal error.