This topic provides a procedure and an example for deploying VMware Tanzu GemFire configuration files in JAR files.
Procedure
CLASSPATH.
CLASSPATH
after searching other locations, so the files cannot be available in the other search areas.Example of Deploying a Configuration JAR
The following example deploys the cache configuration file, myCache.xml
, in my.jar
. The following displays the contents of my.jar
:
% jar -tf my.jar
META-INF
META-INF/MANIFEST.MF
myConfig/
myConfig/myCache.xml
In this example, you would perform the following steps to deploy the configuration jar file:
gemfire.cache-xml-file
to myConfig/myCache.xml
.CLASSPATH
to include my.jar
../myConfig/myCache.xml
, so Tanzu GemFire will be forced to search the jar file to find it.When you start your application, the configuration file is loaded from the jar file.