February 2002
Beginner to intermediate
544 pages
10h 23m
English
The ObjectMessage interface inherits the fields and the methods of the interface javax.jms.Message. The following methods are defined in the interface javax.jms.ObjectMessage.
public java.io.Serializable getObject()
Gets the serializable object containing this message's data. The default value is null.
RETURNS:
the serializable object containing this message's data
THROWS:
JMSException if the JMS provider fails to get the object due to some internal error MessageFormatException if object deserialization fails
public void setObject(java.io.Serializable object)
Sets the serializable object containing this message's data. It is important to note that an ObjectMessage contains a snapshot of the object at the time ...
Read now
Unlock full access