WebLogic Messaging API Class Library

IMessage.SetObjectProperty\xA0Method\xA0

Sets a primitive object property value with the specified name into the message.

Note that this method works only for the objectified primitive object types (int, double, long ...) and String objects.

void\xA0SetObjectProperty(
\xA0\xA0\xA0String\xA0name,
\xA0\xA0\xA0Object\xA0value
);

Parameters

String
the name of the property
Object
the property value to set

Exceptions

Exception TypeCondition
MessageExceptionif JMS fails to set the property due to some internal error.
ArgumentExceptionif the name is null or if the name is an empty string.
MessageFormatExceptionif the object is invalid
MessageNotWriteableExceptionif properties are read-only

See Also

IMessage Interface | WebLogic.Messaging Namespace