WebLogic Messaging API Class Library

IStreamMessage.WriteObject Method 

Writes an object to the stream message.

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

void WriteObject(
   Object value


primitive type object to be written


Exception TypeCondition
MessageExceptionif JMS fails to write the message due to some internal error.
MessageFormatExceptionif the object is invalid.
MessageNotWriteableExceptionif the message is in read-only mode.

See Also

IStreamMessage Interface | WebLogic.Messaging Namespace