Message delivery parameters set on the Session object are used as defaults for all messages sent in that session. The default can be changed by setting the parameters of the call to publish procedure, the call to sendToQueue procedure, or the call to requestReply procedure. These values cannot be changed after the beginSession procedure is called.

The following table lists the methods for setting and getting delivery parameters.

Table 1. Setting and getting delivery parameters
Setting Getting
setDefaultPriority procedure, setDefaultTimeToLive procedure, setDefaultPersistency procedure getDefaultPriority function, getDefaultTimeToLive function, getDefaultPersistency function