* Reads an object message.
*/
private ObjectMessageImpl readObjectMessage(InputStream is)
throws IOException, JMSException
{
ObjectMessageImpl msg = new ObjectMessageImpl();
if (is == null)
return msg;
ObjectInputStream in = new ContextLoaderObjectInputStream(is);
try {
Object obj = in.readObject();
msg.setObject((java.io.Serializable) obj);
} catch (IOException e) {
throw e;
} catch (Exception e) {
throw new JmsExceptionWrapper(e);
}