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

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

setDefaultPersistency procedure, getDefaultPersistency function, setDefaultPriority proceduregetDefaultPriority function, #rfi1387308668186, getDefaultTimeToLive function

For more information, see the Accessing message delivery parameters.