setDefaultTimeToLive procedure
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
setDefaultTimeToLive procedure
Sets the default time to live, the number of milliseconds from the time a message is sent to the time the JMS-provider Broker can delete the message from the system.
Syntax
|
Applies to
Session objects
Notes
- A setting of 0 specifies that the message never expires.
- The default is JMS-broker-dependent; the SonicMQ default value is 0.
- Any fractional part of the decimal value is truncated.
- If the value does not fit in a Java
longvalue, Java rules for decimal-to-long conversions are used. - Setting an
Unknown value (?)has no effect.
See also
setDefaultPersistency procedure, getDefaultPersistency function, setDefaultPriority proceduregetDefaultPriority function, setDefaultTimeToLive procedure, getDefaultTimeToLive function
For more information, see the Accessing message delivery parameters.