createObjectMessage

 

public ObjectMessage createObjectMessage(Serializable object) 
              throws JMSException;

Creates an initialized ObjectMessage. An ObjectMessage is used to send a message that containing a serializable Java™ object.

Parameters

  • object - the object to use to initialize this message.

Returns

  • ObjectMessage

Exceptions

  • IllegalStateException - with reason MQJMS_E_SESSION_CLOSED .


uj30180_