WebLogic Messaging API Class Library

IMapMessage.SetObject\xA0Method\xA0

Sets an object value with the specified name into the Map.

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

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

Parameters

String
key name under which object is to be stored
Object
value to set in the Map

Remarks

Unsigned byte

byte
Value will be stored as converted signed byte
sbyte
instead of unsigned byte. This is because of java dot interoperability maintenence. Value will be converted back without any loss of data if
GetUnsignedByte
method is used.

Exceptions

Exception TypeCondition
MessageExceptionif JMS fails to write the message due to some internal error.
ArgumentExceptionif the name is null or if the name is an empty string.
MessageFormatExceptionif the object is invalid.
MessageNotWriteableExceptionif the message is in read-only mode.

See Also

IMapMessage Interface | WebLogic.Messaging Namespace