|
Joram ${version} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.client.jms.Message
org.objectweb.joram.client.jms.ObjectMessage
Implements the javax.jms.ObjectMessage
interface.
Field Summary |
Fields inherited from class org.objectweb.joram.client.jms.Message |
momMsg, sess |
Fields inherited from interface javax.jms.Message |
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
Method Summary | |
void |
clearBody()
API method. |
java.io.Serializable |
getObject()
API method. |
protected void |
prepare()
Method actually preparing the message for sending by transfering the local body into the wrapped MOM message. |
void |
setObject(java.io.Serializable obj)
API method. |
java.lang.String |
toString()
|
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 |
Method Detail |
public void clearBody() throws javax.jms.JMSException
clearBody
in interface javax.jms.Message
clearBody
in class Message
javax.jms.JMSException
- Actually never thrown.public void setObject(java.io.Serializable obj) throws javax.jms.JMSException
setObject
in interface javax.jms.ObjectMessage
javax.jms.MessageNotWriteableException
- When trying to set an object if
the message body is read-only.
javax.jms.MessageFormatException
- If object serialization fails.
javax.jms.JMSException
public java.io.Serializable getObject() throws javax.jms.MessageFormatException
getObject
in interface javax.jms.ObjectMessage
javax.jms.MessageFormatException
- In case of a problem when getting the
body.protected void prepare() throws java.lang.Exception
prepare
in class Message
java.lang.Exception
- If an error occurs while serializing.public java.lang.String toString()
|
Joram ${version} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |