diff --git a/docs/src/docs/asciidoc/guides/java-gemfire-clientserver.adoc b/docs/src/docs/asciidoc/guides/java-gemfire-clientserver.adoc
index 976439e..2efb0de 100644
--- a/docs/src/docs/asciidoc/guides/java-gemfire-clientserver.adoc
+++ b/docs/src/docs/asciidoc/guides/java-gemfire-clientserver.adoc
@@ -150,7 +150,9 @@ the creation of a peer cache instance along with a `CacheServer` for cache clien
server-side `Region` (by default, "_ClusteredSpringSessions_") used to store the `HttpSessions` state. This step is
optional since the Session `Region` could be created manually, perhaps using external means.
Using `@EnableGemFireHttpSession` is convenient.
-<3> Finally, we adjust the port that the `CacheServer` will use to listen for cache clients by declaring
+<3> (Optional) We annotate the `Config` class with `@EnableManager` to start an embedded Apache Geode Manager
+service to allow JMX clients (e.g. Apache Geode's _Gfsh_ shell tool) to connect and inspect the server.
+<4> Finally, we adjust the port that the `CacheServer` will use to listen for cache clients by declaring
a `CacheServerConfigurer` bean to modify the SDG `CacheServerFactoryBean` using property placeholders.
The sample makes use of _Spring's_ `PropertySourcesPlaceholderConfigurer` in order to externalize the sample
diff --git a/docs/src/docs/asciidoc/guides/java-gemfire-p2p.adoc b/docs/src/docs/asciidoc/guides/java-gemfire-p2p.adoc
index d190770..bf53cbe 100644
--- a/docs/src/docs/asciidoc/guides/java-gemfire-p2p.adoc
+++ b/docs/src/docs/asciidoc/guides/java-gemfire-p2p.adoc
@@ -89,7 +89,7 @@ include::{samples-dir}javaconfig/gemfire-p2p/src/main/java/sample/Config.java[ta
the creation of a peer cache instance.
<2> Then, the `Config` class is annotated with `@EnableGemFireHttpSession` to create the necessary server-side `Region`
(by default, "_ClusteredSpringSessions_") used to store the `HttpSessions` state.
-<3> (Optionally) Finally, we annotated the `Config` class with `@EnableManager` to start an embedded Apache Geode Manager
+<3> (Optional) Finally, we annotated the `Config` class with `@EnableManager` to start an embedded Apache Geode Manager
service to allow JMX clients (e.g. Apache Geode's _Gfsh_ shell tool) to connect and inspect the server.
NOTE: For more information on configuring _Spring Data Geode, refer to the
diff --git a/samples/javaconfig/gemfire-clientserver/src/main/java/sample/ServerConfig.java b/samples/javaconfig/gemfire-clientserver/src/main/java/sample/ServerConfig.java
index 37d241c..e0edacc 100644
--- a/samples/javaconfig/gemfire-clientserver/src/main/java/sample/ServerConfig.java
+++ b/samples/javaconfig/gemfire-clientserver/src/main/java/sample/ServerConfig.java
@@ -24,11 +24,13 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org.springframework.data.gemfire.config.annotation.CacheServerApplication;
import org.springframework.data.gemfire.config.annotation.CacheServerConfigurer;
+import org.springframework.data.gemfire.config.annotation.EnableManager;
import org.springframework.session.data.gemfire.config.annotation.web.http.EnableGemFireHttpSession;
// tag::class[]
@CacheServerApplication(name = "SpringSessionSampleJavaConfigGemFireClientServer", logLevel = "error") // <1>
@EnableGemFireHttpSession(maxInactiveIntervalInSeconds = 30) // <2>
+@EnableManager(start = true) // <3>
public class ServerConfig {
@SuppressWarnings("resource")
@@ -44,7 +46,7 @@ public class ServerConfig {
@Bean
CacheServerConfigurer cacheServerPortConfigurer(
- @Value("${spring.session.data.geode.cache.server.port:40404}") int port) { // <3>
+ @Value("${spring.session.data.geode.cache.server.port:40404}") int port) { // <4>
return (beanName, cacheServerFactoryBean) -> {
cacheServerFactoryBean.setPort(port);
diff --git a/samples/javaconfig/gemfire-p2p/src/main/java/sample/Config.java b/samples/javaconfig/gemfire-p2p/src/main/java/sample/Config.java
index 4ddb7e1..171a054 100644
--- a/samples/javaconfig/gemfire-p2p/src/main/java/sample/Config.java
+++ b/samples/javaconfig/gemfire-p2p/src/main/java/sample/Config.java
@@ -22,7 +22,7 @@ import org.springframework.session.data.gemfire.config.annotation.web.http.Enabl
// tag::class[]
@PeerCacheApplication(name = "SpringSessionSampleJavaConfigGemFireP2p", logLevel = "error") // <1>
-@EnableGemFireHttpSession // <2>
+@EnableGemFireHttpSession(maxInactiveIntervalInSeconds = 30) // <2>
@EnableManager(start = true) // <3>
public class Config {
diff --git a/samples/xml/gemfire-clientserver/src/main/resources/META-INF/spring/session-server.xml b/samples/xml/gemfire-clientserver/src/main/resources/META-INF/spring/session-server.xml
index c4bdc91..aa29623 100644
--- a/samples/xml/gemfire-clientserver/src/main/resources/META-INF/spring/session-server.xml
+++ b/samples/xml/gemfire-clientserver/src/main/resources/META-INF/spring/session-server.xml
@@ -21,10 +21,8 @@
SpringSessionSampleXmlGemFireClientServer
${spring.session.data.gemfire.log-level:error}
-
diff --git a/samples/xml/gemfire-p2p/src/main/webapp/WEB-INF/spring/session.xml b/samples/xml/gemfire-p2p/src/main/webapp/WEB-INF/spring/session.xml
index 0719844..7e68585 100644
--- a/samples/xml/gemfire-p2p/src/main/webapp/WEB-INF/spring/session.xml
+++ b/samples/xml/gemfire-p2p/src/main/webapp/WEB-INF/spring/session.xml
@@ -2,6 +2,7 @@
-
+