AUTO_ACKNOWELDGE vs CLIENT_ACKNOWELDGE

I would like to know differences, advantages, disadvantages, practical uses between AUTO_ACKNOWELDGE vs CLIENT_ACKNOWELDGE

Any links, sample code, resources, ideas highly appreciated. Thanks in advace
LVL 7
gudii9Asked:
Who is Participating?
 
mccarlIT Business Systems Analyst / Software DeveloperCommented:
AUTO_ACKNOWLEDGE means that as soon as the JMS client library pass the message to your code, it will send an acknowledgement to the browser. Even if your code fails/throws exception/etc the message has already been acknowledged and wouldn't be redelivered.

CLIENT_ACKNOWLEDGE means that your code has to initiate the acknowledgement. This means that you can delay the acknowledgement until you know that the message has been fully processed. If you fail to initiate the acknowledgement, then the message will be redelivered the next time you ask for a message (or the next time a message is sent to your MessageListener).
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.