|
Oracle® Streams Advanced Queuing Java API Reference 10g Release 2 (10.2) B14291-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jms.AQjmsMessage
oracle.jms.AQjmsObjectMessage
This is an Oracle class which implements javax.jms.ObjectMessage
.
Field Summary |
Fields inherited from interface javax.jms.Message |
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
Method Summary | |
void |
clearBody() Clears out the message body. |
void |
clearProperties() Clears a message's properties. |
java.io.Serializable |
getObject() Gets the serializable object containing this message's data. |
void |
setObject(java.io.Serializable object) Sets this message's body to be a copy of the specified serializable object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void clearProperties() throws JMSException
clearProperties
in interface Message
clearProperties
in class AQjmsMessage
JMSException
- if the message properties are not cleared due to some error.public void setObject(java.io.Serializable object) throws JMSException
setObject
in interface ObjectMessage
object
- the value for this message's bodyJMSException
- if this message's body is not set due to some error.MessageFormatException
- if object serialization failsMessageNotWriteableException
- if this message is in read-only mode.public java.io.Serializable getObject() throws JMSException
null
.getObject
in interface ObjectMessage
JMSException
- if the object is not retrieved due to some error.MessageFormatException
- if object deserialization fails.public void clearBody() throws JMSException
clearBody
in interface Message
clearBody
in class AQjmsMessage
JMSException
- if the message body is not cleared due to some error.
|
Oracle® Streams Advanced Queuing Java API Reference 10g Release 2 (10.2) B14291-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |