As described in Message Delivery Modes, the EMS server writes
PERSISTENT messages to disk while waiting for confirmation of receipt from the subscriber. Messages are persisted to a
store. The EMS server can write messages to two types of stores: file-based stores and database stores.
By default, the EMS server writes persistent messages to file-based stores. There are three default store files, as described in
Default Store Files. You can configure the system to change the default store files and locations, and also to store non-persistent messages to one or more store files, filtering them by destination. Stores are defined in the
stores.conf configuration file, and associated with a destination using the
store destination property.
With the multiple stores feature, you can configure your messaging application to store messages in different locations for each application, or to create separate backup files for related destinations. For example, you can create one store for messages supporting Marketing, and one for messages supporting Sales. Because stores are configured in the server, they are transparent to clients.
The EMS server stores persistent messages in file-based stores. You can also create custom file-based stores, and direct the EMS server to write messages to these store files by associating a destination with a store.
File-based stores are enabled by default, and the server automatically defines three default stores, described below. You do not need to do anything in order to use the default stores. The section
Configuring Multiple Stores below describes how to change store settings or create custom stores.
The EMS server creates these file-based stores automatically, and no steps are required to enable or deploy them. However, you can change the system configuration to customize the default store file settings, or even override the default store settings to either point to different file location or to a database.
Settings for creating and configuring multiple stores are managed in the EMS server, and are transparent to clients. To configure the multiple stores feature, follow these steps:
File-based stores have two required parameters, type and
file, which determine that the store is a file-based store, and set its location and filename. Optional parameters allow you to determine other settings, including how messages are written to the file, the minimum size of the file, and whether the EMS server attempts to truncate the file.