Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
Here is the documentation on enableLocalCache (Changing the Default Geode Configuration in the Tomcat Module)
enableLocalCache
Whether a local cache is enabled. If this parameter is set to true, the app server load balancer should be configured for sticky session mode.
Default: false for peer-to-peer, true for client/server
However, current geode implementation always default to false for both peer-to-peer and client/sever cache.
public TomcatContainer(TomcatInstall install, File containerConfigHome, String containerDescriptors, IntSupplier portSupplier) throws IOException { super(install, containerConfigHome, containerDescriptors, portSupplier); // Setup container specific XML files contextXMLFile = new File(cargoLogDir.getAbsolutePath() + "/context.xml"); serverXMLFile = new File(DEFAULT_CONF_DIR + "server.xml"); // Copy the default container context XML file from the install to the specified path FileUtils.copyFile(new File(DEFAULT_CONF_DIR + "context.xml"), contextXMLFile); // Set the container context XML file to the new location copied to above setConfigFile(contextXMLFile.getAbsolutePath(), DEFAULT_TOMCAT_XML_REPLACEMENT_DIR, DEFAULT_TOMCAT_CONTEXT_XML_REPLACEMENT_NAME); // Default properties --> setCacheProperty("enableLocalCache", "false"); setCacheProperty("className", install.getContextSessionManagerClass()); // Deploy war file to container configuration deployWar(); // Setup the default installations locators setLocator(install.getDefaultLocatorAddress(), install.getDefaultLocatorPort()); }
Attachments
Issue Links
- links to