WebLogic Messaging API Class Library

IBytesMessage.WriteObject Method 

Writes an object to the bytes message stream.

This method works only for the objectified primitive object types (int, double, long ...), String objects, and byte arrays.

void WriteObject(
   Object value
);

Parameters

Object
the object to be written; it must not be null

Exceptions

Exception TypeCondition
MessageExceptionif JMS fails to write the message due to some internal error.
MessageFormatExceptionif the object is of an invalid type.
MessageNotWriteableExceptionif the message is in read-only mode.
NullReferenceExceptionif the parameter value is null.

See Also

IBytesMessage Interface | WebLogic.Messaging Namespace