Set and Get Message Properties
Before a client sends a message, it can use a "set property" method to set the message properties. The client can check the message properties with a "get property" method.
For more information on message properties, see EMS Message Properties.
- Java
Use the
Messageobject’ssetBooleanProperty()method
to set theJMS_TIBCO_PRESERVE_UNDELIVEREDproperty totrue:message.setBooleanProperty("JMS_TIBCO_PRESERVE_UNDELIVERED",
true);Use the
getStringProperty()method to get the user ID of theJMS_TIBCO_SENDER:userID = message.getStringProperty("JMS_TIBCO_SENDER"); - C
Use the
tibemsMsg_SetBooleanPropertyfunction to set theJMS_TIBCO_PRESERVE_UNDELIVEREDproperty totrue:status = tibemsMsg_SetBooleanProperty(message,
"JMS_TIBCO_PRESERVE_UNDELIVERED", true);Use the
tibemsMsg_GetStringPropertyfunction to get the user ID of theJMS_TIBCO_SENDER:char* userID = NULL;status = tibemsMsg_GetStringProperty(message,
"JMS_TIBCO_SENDER", &userID); - C#
Use the
Message.SetBooleanPropertymethod
to set theJMS_TIBCO_PRESERVE_UNDELIVEREDproperty totrue:message.SetBooleanProperty("JMS_TIBCO_PRESERVE_UNDELIVERED",
true);Use the
Message.GetStringPropertymethod to get the user ID of theJMS_TIBCO_SENDER:string userID = message.GetStringProperty("JMS_TIBCO_SENDER");