Message acknowledgement

So far, we have learned how messages can be delivered from one point to another. We have used queues and topics to send the messages. Once the messages are consumed by the consumer, the messages will be removed from the messaging provider. Once the message is processed by the consumer, it can send an acknowledgement back to the messaging provider, so that the provider takes the messages off the queue or the topics. There are different ways to send this acknowledgement:

  • Auto acknowledgeIn auto acknowledgement, when the message is received by the client, the message will be removed from the JMS provider. The message will be automatically removed from the queue or the topic once it is processed by the consumer.
  • Duplicates ...

Get Kotlin for Enterprise Applications using Java EE now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.