setDefaultPersistency procedure

Sets the default message persistency value for all messages sent in that session.

Syntax

PROCEDURE setDefaultPersistency. 
DEFINE INPUT PARAMETER deliveryMode AS CHARACTER.

Applies to

Session objects

Notes

  • Possible values include: PERSISTENT, NON_PERSISTENT, NON_PERSISTENT_ASYNC, DISCARDABLE, and UNKNOWN (?).
  • The default value is PERSISTENT.
  • A call with an Unknown value (?) has no effect.
  • Use DISCARDABLE only when publishing to a topic. If DISCARDABLE is used when publishing other than to a topic, an error is raised.
  • The evaluation is case-insensitive.
  • NON_PERSISTENT_ASYNC is a SonicMQ extension of the JMS specification.

See also

setDefaultPersistency procedure, getDefaultPersistency function, setDefaultPriority proceduregetDefaultPriority function, setDefaultTimeToLive procedure, getDefaultTimeToLive function

For more information, see the Accessing message delivery parameters.