This class implements the
javax.jms.ObjectMessage
interface.
An ObjectMessage is used to send a message that contains a serializable Java object. It inherits from
Message
and adds a body containing a single Java reference. Only
Serializable
Java objects can be used.
If a collection of Java objects must be sent, one of the collection classes provided in JDK 1.2 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 now be both read from and written to.
@author
Jim Mourikis
@author
Tim Anderson
@version $Revision: 1.2 $ $Date: 2006/06/10 23:21:32 $