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
Message
object’ssetBooleanProperty()
method
to set theJMS_TIBCO_PRESERVE_UNDELIVERED
property 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_SetBooleanProperty
function to set theJMS_TIBCO_PRESERVE_UNDELIVERED
property totrue:
status = tibemsMsg_SetBooleanProperty(message,
"JMS_TIBCO_PRESERVE_UNDELIVERED", true);
Use the
tibemsMsg_GetStringProperty
function to get the user ID of theJMS_TIBCO_SENDER
:char* userID = NULL;
status = tibemsMsg_GetStringProperty(message,
"JMS_TIBCO_SENDER", &userID);
- C#
Use the
Message.SetBooleanProperty
method
to set theJMS_TIBCO_PRESERVE_UNDELIVERED
property totrue:
message.SetBooleanProperty("JMS_TIBCO_PRESERVE_UNDELIVERED",
true);
Use the
Message.GetStringProperty
method to get the user ID of theJMS_TIBCO_SENDER
:string userID = message.GetStringProperty("JMS_TIBCO_SENDER");