DeliveryMode (-DM)

Use the DeliveryMode adapter command (-DM or -DELIVERYMODE) to indicate the mode of delivery for messaging. For non-persistent messaging, the value is !P. For persistent messaging the value is P.

This is an optional command. The default is javax.jms.Message.DEFAULT_DELIVERY_MODE, making the behavior provider-specific.


-DM !P|P
Option
Description
!P
Specifies non-persistent delivery mode for sent messages.

Indicates no guarantee that a sent message will be delivered and it is acceptable that intended receivers miss messages arising from provider failure.

P
Specifies once-only persistent delivery mode for sent messages. This guarantees once-only delivery of messages.

For example, to specify persistent as the delivery mode value:


-DM P