2 Using the Default Persistent Store

This chapter explains how to configure and monitor the WebLogic Server persistent store, which provides a built-in, high-performance storage solution for WebLogic Server subsystems and services that require persistence.

Using the Default Persistent Store

Each server instance, including the Administration Server, has a default persistent store that requires no configuration. The default store is a file-based store that maintains its data in a group of files in a server instance data\store\default directory. A directory for the default store is automatically created if one does not already exist.

This default store is available to subsystems that do not require explicit selection of a particular store, and function best by using the system's default storage mechanism. For example, a JMS Server with no persistent store configured will use the default store for its Managed Server and will support persistent messaging.

The default store can be configured by directly manipulating DefaultFileStoreMBean parameters. If this MBean is not defined in the domain configuration file, then the configuration subsystem ensures that the DefaultFileStoreMBean always exists with the default values.

Default Store Location

The default store maintains its data beneath DOMAIN_HOME/servers/SERVER_NAME, in the data/store/default directory.

Unless an explicit directory is configured, the default file store is located at DOMAIN_HOME/servers/SERVER_NAME/data/store/default. DOMAIN_HOME is the domain root directory and SERVER_NAME is the server instance name. The domain may reside outside ORACLE_HOME. WebLogic Server product files are installed under ORACLE_HOME/wlserver.

Example of a Default File Store

The following example overrides the default file-store directory. The Synchronous Write Policy retains its default value because the example does not configure it.

<server>
  <name>myserver</name>
  <default-file-store>
  <directory>C:/store</directory>
  </default-file-store>
</server>