Configuring File-Based Stores

This section describes the basic steps required to configure file-based stores.

For more information on database store configuration, see Database Stores. 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:

    Procedure
  1. Setup and configure stores in the stores.conf file.
    Stores are created and configured in the stores.con file. Each store must have a unique name. The stores are configured through parameters.
    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.
  2. Associate destinations with the configured stores.

    Messages are sent to different stores according to their destinations. Destinations are associated with specific stores with the store parameter in the topics.conf and queues.conf files.

When using file-based stores, you can also change store associations dynamically using the setprop topic or setprop queue command in the EMS Administration Tool.

Multiple destinations can be mapped to the same store, either explicitly or using wildcards. Even if no stores are configured, the server sends persistent messages that are not associated with a store to default stores. See Default Store Files for more information.

For details about the store parameter, see store.