readObject

 

public Object readObject() throws JMSException;

Reads a Java™ object from the stream message.

This method can be used to return in 'objectified' format, an object that had been written to the stream with the equivalent writeObject() method call, or its equivalent primitive write() method.

Returns

  • a Java object from the stream message, in 'objectified' format.

Exceptions

  • JMSException - if JMS fails to read the message due to an internal JMS error.

  • MessageEOFException - if an end of message stream.

  • MessageNotReadableException - if the message is in write-only mode.


uj27050_