Re-organize all client/server sample code to separate client and server classes into client and server packages, respectively.

Rename sample.ServerConfig class to sample.server.GemFireServer and apply the GemFireServer Gradle Plugin.

Change all 'spring.session.data.gemfire.*' and 'spring.session.data.geode.*' properties to use the SDG property prefixed with 'spring.data.gemfire.*'.
This commit is contained in:
John Blum
2018-08-22 08:32:08 -07:00
parent 61048a3e04
commit d856bce248
19 changed files with 36 additions and 158 deletions

View File

@@ -17,11 +17,11 @@
<context:property-placeholder/>
<bean class="sample.ClientServerReadyBeanPostProcessor"/>
<bean class="sample.client.ClientServerReadyBeanPostProcessor"/>
<!--1-->
<util:properties id="gemfireProperties">
<prop key="log-level">${spring.session.data.geode.log-level:error}</prop>
<prop key="log-level">${spring.data.gemfire.cache.log-level:error}</prop>
</util:properties>
<!--2-->
@@ -29,8 +29,7 @@
<!--3-->
<gfe:pool read-timeout="15000" retry-attempts="1" subscription-enabled="true">
<gfe:server host="${spring.session.data.geode.cache.server.host:localhost}"
port="${spring.session.data.geode.cache.server.port:${spring.data.gemfire.cache.server.port:40404}}"/>
<gfe:server host="localhost" port="${spring.data.gemfire.cache.server.port:40404}"/>
</gfe:pool>
<!--4-->

View File

@@ -39,7 +39,7 @@
<servlet>
<servlet-name>session</servlet-name>
<servlet-class>sample.SessionServlet</servlet-class>
<servlet-class>sample.client.SessionServlet</servlet-class>
</servlet>
<servlet-mapping>