This method works only for the objectified primitive object types (int, double, long ...), String objects, and byte arrays.
| Exception Type | Condition | 
|---|---|
| MessageException | if JMS fails to write the message due to some internal error. | 
| MessageFormatException | if the object is of an invalid type. | 
| MessageNotWriteableException | if the message is in read-only mode. | 
| NullReferenceException | if the parameter valueis null. | 
IBytesMessage Interface | WebLogic.Messaging Namespace