[ 
https://issues.apache.org/jira/browse/GEODE-7477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Shu reassigned GEODE-7477:
-------------------------------

    Assignee: Eric Shu

> In Geode session management for Tomcat module, the default setting of 
> enableLocalCache for client/server is different from the docs
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: GEODE-7477
>                 URL: https://issues.apache.org/jira/browse/GEODE-7477
>             Project: Geode
>          Issue Type: Bug
>          Components: http session
>            Reporter: Eric Shu
>            Assignee: Eric Shu
>            Priority: Major
>
> 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.
> {code}
>   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());
>   }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to