Try OpenEdge Now
skip to main content
Messaging and ESB
ABL - JMS API Reference : setDefaultTimeToLive procedure
 

setDefaultTimeToLive procedure

Sets the default time to live, the number of milliseconds from the time a message is sent to the time the SonicMQ Broker can delete the message from the system.

Syntax

PROCEDURE setDefaultTimeToLive.
DEFINE INPUT PARAMETER millis AS DECIMAL.

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 long value, Java rules for decimal-to-long conversions are used.
*Setting an Unknown value (?) has no effect.

See also

setDefaultPersistencyprocedure, getDefaultPersistencyfunction, setDefaultPriorityproceduregetDefaultPriorityfunction, setDefaultTimeToLiveprocedure, getDefaultTimeToLivefunction
For more information, see the Accessing message delivery parameters.