JMSObjectMessage

 

public class JMSObjectMessage
extends JMSMessage
implements ObjectMessage

java.lang.Object
   |
   +----com.ibm.jms.JMSMessage
           |
           +----com.ibm.jms.JMSObjectMessage
          

An ObjectMessage is used to send a message that contains a serializable Java™ Object. It inherits from JMSMessage and adds a body containing a single serializable Java Object.

If more than one Java object must be sent, one of the collection classes can be used.

When a client receives an ObjectMessage , it is in read-only mode. If a client attempts to write to the message at this point, a MessageNotWriteableException is thrown. If clearBody() is called, the message can then be both read from and written to.


uj26880_