setObjectProperty
public void setObjectProperty(String name, Object value) throws JMSException;
Sets a Java™ object property value with the given name into the message.
This method only works for the 'objectified' primitive object types (Integer, Double, Long...) and for Strings.
- Parameters
- name - the name of the Java object property.
- value - the Java object property value to set in the Message.
- Exceptions
- MessageNotWriteableException - if properties are marked read-only
- MessageFormatException - if the class of the object is not Number or String
- JMSException - with reason MQJMS_E_BAD_PROPERTY_NAME
uj26840_