聊聊artemis的individualAcknowledge
序 本文主要研究一下artemis的individualAcknowledge acknowledge activemq-artemis-2.11.0/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessage.java public class ActiveMQMessage implements javax.jms.Message { //...... public void acknowledge() throws JMSException { if (session != null) { try { if (session.isClosed()) { throw ActiveMQClientMessageBundle.BUNDLE.sessionClosed(); } if (individualAck) { message.individualAcknowledge(); } if (clientAck || individualAck) { session.commit(session.isBlockOnAcknowledge()); } } catch (ActiveMQException e) { throw JMSExceptionHelper