6.2. Running the MRG Messaging Broker with Persistence

The MRG Messaging broker enables persistence by default. Persistence is implemented in the msgstore.so module. To verify that persistence is active, make sure that the log shows that the journal is created and the store module initialized when the broker is started:
2009-nov-04 20:39:58 notice Journal "TplStore": Created
2009-nov-04 20:39:58 notice Store module initialized; dir=/home/jrobie/.qpidd

Important

If the persistence module is not loaded, messages and the broker state will not be stored to disk, even if the queue and messages sent to it are marked persistent.
The --store-dir command specifies the directory used for for the persistence store and any configuration information. The default directory is /var/lib/qpidd when qpidd is run as a service, or ~/.qpidd when qpidd is run from the command line. See Table 6.1, “Persistence Options” for options that change this behavior. If --store-dir is not specified, a subdirectory named rhm is created within the directory identified by --data-dir; if --store-dir is not specified, and --no-data-dir is specified, an error is raised.

Important

Only one running broker can access a data directory at a time. If another broker attempts to access the data directory it will fail with an error stating: Exception: Data directory is locked by another process.