Until a JMS message has been acknowledged, it is not considered to be successfully consumed. The successful consumption of a message ordinarily takes place in three stages.
1. The client receives the message.
2. The client processes the message.
3. The message is acknowledged. Acknowledgment is initiated either by the JMS provider or by the client, depending on the session acknowledgment mode.
- ACKNOWLEDGMENT- by specifying various levels of control over message acknowledgment
- PERSISTENCE - by specifying that messages are persistent, that they must not be lost in the event of a provider failure
- PRIORITY - by setting various priority levels for messages, which can affect the order in which the messages are delivered
- EXPIRATION - by specifying an expiration time for messages, so that they will not be delivered if they are obsolete
- TEMPORARY DESTINATION - by creating temporary destinations that last only for the duration of the connection in which they are created
