WebLogic Messaging API Class Library |

# IMessageProducer.DeliveryMode Property

Gets or Sets the producer's default delivery mode as a `Constants.DeliveryMode`.

Delivery mode is set to `PERSISTENT` by default.

DeliveryMode {get; set;}

#### Property Value

Indicates the message delivery mode for this message producer; legal values are `DeliveryMode.NON_PERSISTENT` and `DeliveryMode.PERSISTENT`

#### Exceptions

Exception Type | Condition
--- | ---
MessageException | if JMS fails to get or set the delivery mode due to some internal error.

#### See Also

IMessageProducer Interface | WebLogic.Messaging Namespace | IMessage.JMSDeliveryMode | Constants.DeliveryMode.NON_PERSISTENT | Constants.DeliveryMode.PERSISTENT | Constants.Defaults.DEFAULT_DELIVERY_MODE