Broker 10.5 | webMethods Broker Documentation | webMethods Broker Messaging Programmer's Guide | Introduction | Basics of webMethods Messaging | JMS API Programming Model | Messages | Message Acknowledgment
 
Message Acknowledgment
A message is not considered to be successfully consumed until it is acknowledged. Depending on the session acknowledgment mode, the messaging provider may send a message more than once to the same destination. There are several message acknowledgment constants:
Value
Description
AUTO_ACKNOWLEDGE
Automatically acknowledges the successful receipt of a message.
Message acknowledgements are sent asynchronously to Broker Server. Configure these properties to change the default behavior of message acknowledgements:
*autoAckBatchSize
*autoAckBatchSizeRetry
*autoAckServicePollInterval
For information about the APIs available for configuring the asynchronous auto acknowledgements, see the descriptions of the WmJMSConfig class in the Javadoc.
CLIENT_ACKNOWLEDGE
Acknowledges the receipt of a message when the client calls the message's acknowledge() method.
DUPS_OK_ACKNOWLEDGE
Instructs the session to automatically, lazily acknowledge the receipt of messages. This reduces system overhead but may result in duplicate messages being sent.
SESSION_TRANSACTED
Used for transacted sessions. The acknowledgment mode is ignored.