jms4spread
Class ObjectMessage

java.lang.Object
  |
  +--jms4spread.Message
        |
        +--jms4spread.ObjectMessage
All Implemented Interfaces:
java.io.Serializable

public class ObjectMessage
extends Message

A class to send Objects and Messages using JMS4spread. All Objects used should be serializable

See Also:
Serialized Form

Fields inherited from class jms4spread.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
ObjectMessage()
           
 
Method Summary
 void clearBody()
          Clears the Object
 java.lang.Object getObject()
          Gets the object from the Message
 void setObject(java.lang.Object obj)
          Sets the object for the Message
 
Methods inherited from class jms4spread.Message
clearProperties, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageType, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getMessageID, JMSTimeStamp, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageType, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimeStamp, setMessageID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectMessage

public ObjectMessage()
Method Detail

getObject

public java.lang.Object getObject()
                           throws JMSException
Gets the object from the Message
Returns:
the Object
Throws:
JMSException - in case of internal error

setObject

public void setObject(java.lang.Object obj)
               throws JMSException
Sets the object for the Message
Parameters:
obj - the Object
Throws:
JMSException - in case of internal error

clearBody

public void clearBody()
Clears the Object
Overrides:
clearBody in class Message