Name
ObjectMessage
Synopsis
This is a message that contains a single serialized Java object as its
body. Only Serializable
objects can be used as the body of an
ObjectMessage
. When an ObjectMessage
is received, it is read-only
until the clearBody()
method is called on it.
public interface ObjectMessage extends javax.jms.Message { // Public Instance Methods public abstract Serializable getObject( ) throws JMSException; public abstract void setObject( Serializable object) throws JMSException; }
Returned By
javax.jms.Session.createObjectMessage()
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.