Coherence is configured out-of-box to use the first coherence-cache-config.xml file that is found on the classpath. To use a coherence-cache-config.xml file, the file must be located on the classpath and must precede the coherence.jar library; otherwise, the sample coherence-cache-config.xml file that is located in the coherence.jar is used.
Make a copy of the sample coherence-cache-config.xml file that is located in the coherence.jar and save it to a different location. The cache definitions that are included in the sample file are for demonstration purposes and are used as a starting point for creating solution-specific cache configurations.
Ensure that the location where the coherence-cache-config.xml file is saved is in the classpath at run time and that the location precedes the coherence.jar file in the classpath.
The following example demonstrates starting a cache server that uses a coherence-cache-config.xml cache configuration file that is located in COHERENCE_HOME .
3.3.2 Overriding the Default Cache Configuration File
The default name and location of the cache configuration deployment descriptor is specified in the operational deployment descriptor within the element. This element can be overridden to specify a different name an location to be used for the default cache configuration file.
Make a copy of the default coherence-cache-config.xml cache configuration file that is located in the coherence.jar and save it to a location with a different name.
Edit the operational override file and enter a node that specifies the name of the cache configuration file created in step 1. If the https://hookupdate.net/es/country-match-review/ cache configuration file is not located in the classpath, enter the full (or relative) path to the file as well. The element also supports the use of a URL when specifying the location of a cache configuration file. Continue reading “3.3.1 Using a Default Cache Configuration File”