Wednesday, July 27, 2011

MULE JMS - JMS Connector Acknowledgement Mode

The JMS Connector is used to configure a generic connector to send and receive messages over JMS Queues.

Attributes:

name: This is a mandatory attribute that provides a unique name to this connector.

acknowledgementMode: When a JMS Session is not having any transactions, one can use three kinds of acknowledgement mode.

DUPS_OK_ACKNOWLEDGE: This option instructs the session to lazily acknowledge the 
delivery of messages. This is likely to result in the delivery of some duplicate 
messages if JMS fails, so it should be used only by consumers that are tolerant of duplicate messages.
AUTO_ACKNOWLEDGE: The session automatically acknowledges a client’s receipt of a 
message when it has either successfully returned from a call to receive or the 
MessageListener it has called to process the message successfully returns.
CLIENT_ACKNOWLEDGE: A client acknowledges a message by calling the message’s 
acknowledge method. Acknowledging a consumed message automatically acknowledges 
the receipt of all messages that have been delivered by its session.

No comments:

Post a Comment