bsp;setObject(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>&nbsp;object)
        throws <a href="../../javax/jms/JMSException.html" title="class in javax.jms">JMSException</a></pre>
<div class="block">Sets the serializable object containing this message's data.
 It is important to note that an <code>ObjectMessage</code>
 contains a snapshot of the object at the time <code>setObject()</code>
 is called; sub