Chapter 5. ActiveMQ message storage

 

This chapter covers
  • How messages are stored in ActiveMQ for both queues and topics
  • The four styles of message stores provided with ActiveMQ
  • How ActiveMQ caches messages for consumers
  • How to control message caching using subscription recovery policies

 

The JMS specification supports two types of message delivery: persistent and nonpersistent. A message delivered with the persistent delivery property must be logged to stable storage. For nonpersistent messages, a JMS provider must make best efforts to deliver the message, but it won’t be logged to stable storage.

ActiveMQ supports both of these types of message delivery and can also be configured to support message recovery, an in-between state where ...

Get ActiveMQ in Action 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.