javax.jms
Interface DeliveryMode


public abstract interface DeliveryMode

Delivery modes supported by JMS.

Version:
1.0 - 7 August 1998
Author:
Mark Hapner, Rich Burridge

Field Summary
static int NON_PERSISTENT
          This is the lowest overhead delivery mode because it does not require that the message be logged to stable storage.
static int PERSISTENT
          This mode instructs the JMS provider to log the message to stable storage as part of the client's send operation.
 

Field Detail

NON_PERSISTENT


public static final int NON_PERSISTENT
This is the lowest overhead delivery mode because it does not require that the message be logged to stable storage. The level of JMS provider failure that causes a NON_PERSISTENT message to be lost is not defined.

A JMS provider must deliver a NON_PERSISTENT message with an at-most-once guarantee. This means it may lose the message but it must not deliver it twice.


PERSISTENT


public static final int PERSISTENT
This mode instructs the JMS provider to log the message to stable storage as part of the client's send operation. This insures the message will survive a provider process failure.

A JMS provider must deliver a PERSISTENT message with a once-and-only-once guarantee. It must not lose it and it must not deliver it twice.