How does a consumer acknowledge a message from a producer?
Location: http://www.jguru.com/faq/view.jsp?EID=1307 Created: Nov 28, 1999 Author: Jerry Smith (http://www.jguru.com/guru/viewbio.jsp?EID=9) The easiest way is to allow the framework to do it–automatic acknowledgment: … topicCon.createTopicSession(false, AUTO_ACKNOWLEDGE); … With client acknowledgment, a client can allow messages to accumulate until some arbitrary application condition: … topicCon.createTopicSession(false, CLIENT_ACKNOWLEDGE); … When a client acknowledges a message, the acknowledged message and all “older” messages become unavailable for future processing.