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’s setBooleanProperty() method to set the JMS_TIBCO_PRESERVE_UNDELIVERED property to true:

       message.setBooleanProperty("JMS_TIBCO_PRESERVE_UNDELIVERED",
                                   true);

    Use the getStringProperty() method to get the user ID of the JMS_TIBCO_SENDER:

       userID = message.getStringProperty("JMS_TIBCO_SENDER");
  • C

    Use the tibemsMsg_SetBooleanProperty function to set the JMS_TIBCO_PRESERVE_UNDELIVERED property to true:

       status = tibemsMsg_SetBooleanProperty(message,
                          "JMS_TIBCO_PRESERVE_UNDELIVERED", true);

    Use the tibemsMsg_GetStringProperty function to get the user ID of the JMS_TIBCO_SENDER:

       char* userID = NULL;

       status = tibemsMsg_GetStringProperty(message,
                          "JMS_TIBCO_SENDER", &userID);
  • C#

    Use the Message.SetBooleanProperty method to set the JMS_TIBCO_PRESERVE_UNDELIVERED property to true:

       message.SetBooleanProperty("JMS_TIBCO_PRESERVE_UNDELIVERED",
                                true);

    Use the Message.GetStringProperty method to get the user ID of the JMS_TIBCO_SENDER:

       string userID = message.GetStringProperty("JMS_TIBCO_SENDER");