IObjectMessage
contains a snapshot of the object at the time SetObject()
is called; subsequent modifications of the object will have no effect on the IObjectMessage
body. The object must either specifies a System.Serializable
attribute or implement the System.Runtime.Serialization.ISerializable
interface.
It is important to keep in mind that objects that were originally created and sent as the contents of an object message in the .NET environment may only be deserialized and converted back into an object in the .NET environment. Cross platform serialization/deserialization between Java and .NET will not work, and will result in an Exception when an attempt is made to retrieve the object.
Exception Type | Condition |
---|---|
MessageException | if JMS fails to get the object due to some internal error |
MessageFormatException | if object serialization or deserialization fails, or if the Object was originally sent as a Java object |
MessageNotWriteableException | if the message is in read-only mode. |
IObjectMessage Interface | WebLogic.Messaging Namespace