cgl.narada.jms
Class JmsObjectMessage

java.lang.Object
  extended by cgl.narada.jms.JmsMessage
      extended by cgl.narada.jms.JmsObjectMessage
All Implemented Interfaces:
Message, ObjectMessage

public class JmsObjectMessage
extends JmsMessage
implements ObjectMessage

This class implements the ObjectMessage specified in the JMS specification.


Field Summary
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
JmsObjectMessage()
           
JmsObjectMessage(byte[] objectMsgBytes)
           
 
Method Summary
 void clearBody()
           
 byte[] getBytes()
           
 Serializable getObject()
           
static void main(String[] args)
           
 void setObject(Serializable object)
           
 String toString()
           
 
Methods inherited from class cgl.narada.jms.JmsMessage
acknowledge, clearProperties, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBodyAndPropertyAsReadOnly, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, testReadBody, testWriteBody, testWriteProperties, unmarshallJmsMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jms.Message
acknowledge, 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()

JmsObjectMessage

public JmsObjectMessage(byte[] objectMsgBytes)
Method Detail

getBytes

public byte[] getBytes()
Overrides:
getBytes in class JmsMessage

setObject

public void setObject(Serializable object)
               throws JMSException
Specified by:
setObject in interface ObjectMessage
Throws:
JMSException

getObject

public Serializable getObject()
                       throws JMSException
Specified by:
getObject in interface ObjectMessage
Throws:
JMSException

toString

public String toString()
Overrides:
toString in class JmsMessage

clearBody

public void clearBody()
               throws JMSException
Specified by:
clearBody in interface Message
Overrides:
clearBody in class JmsMessage
Throws:
JMSException

main

public static void main(String[] args)


For comments and suggestions please send e-mail to The NaradaBrokering Project