Menu Search

Chapter 8. Stores

8.1. Memory Store

The Java broker has an in-memory message store implementation. This section will detail configuration for using the MemoryMessageStore.

Note: when using this store, the broker will store both persistent and non-persistent messages in memory, which is to say that neither will be available following a broker restart, and the ability to store new messages will be entirely constrained by the JVM heap size.

8.1.1. Configuration

In order to use the MemoryMessageStore, you must configure it for each VirtualHost desired by updating the store element to specify the associated store class, as shown below.

Example 8.1. Configuring a VirtualHost to use the MemoryMessageStore