Fix GemFire TODOs

Upgrades Spring Session to use Spring Data GemFire 1.7.4.RELEASE
and addresses all TODOs.

Fixes gh-403
This commit is contained in:
John Blum
2016-02-29 18:33:35 -08:00
committed by Rob Winch
parent 00af8456d4
commit 3300b58afe
2 changed files with 8 additions and 12 deletions

View File

@@ -15,7 +15,7 @@ springVersion=4.2.5.RELEASE
httpClientVersion=4.5.1
jedisVersion=2.7.3
springShellVersion=1.1.0.RELEASE
springDataGemFireVersion=1.7.2.RELEASE
springDataGemFireVersion=1.7.4.RELEASE
assertjVersion=2.3.0
spockVersion=1.0-groovy-2.4
jstlVersion=1.2.1

View File

@@ -243,11 +243,6 @@ public class ClientServerGemFireOperationsSessionRepositoryIntegrationTests exte
maxInactiveIntervalInSeconds = MAX_INACTIVE_INTERVAL_IN_SECONDS)
static class SpringSessionGemFireClientConfiguration {
//TODO remove when SGF-458 is released
static {
System.setProperty("gemfire.log-level", GEMFIRE_LOG_LEVEL);
}
@Bean
PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
return new PropertySourcesPlaceholderConfigurer();
@@ -256,18 +251,19 @@ public class ClientServerGemFireOperationsSessionRepositoryIntegrationTests exte
@Bean
Properties gemfireProperties() {
Properties gemfireProperties = new Properties();
//TODO uncomment when SGF-458 is released.
//gemfireProperties.setProperty("name", ClientServerGemFireOperationsSessionRepositoryIntegrationTests.class.getName());
//gemfireProperties.setProperty("log-level", GEMFIRE_LOG_LEVEL);
gemfireProperties.setProperty("name", ClientServerGemFireOperationsSessionRepositoryIntegrationTests.class.getName());
gemfireProperties.setProperty("log-level", GEMFIRE_LOG_LEVEL);
return gemfireProperties;
}
@Bean(name = GemfireConstants.DEFAULT_GEMFIRE_POOL_NAME)
PoolFactoryBean gemfirePool(@Value("${spring.session.data.gemfire.port:"+DEFAULT_GEMFIRE_SERVER_PORT+"}") int port) {
PoolFactoryBean poolFactory = new PoolFactoryBean();
PoolFactoryBean poolFactory = new PoolFactoryBean() {
@Override protected Properties resolveGemfireProperties() {
return gemfireProperties();
}
};
// TODO uncomment when SGF-458 is released
//poolFactory.setProperties(gemfireProperties());
poolFactory.setName(GemfireConstants.DEFAULT_GEMFIRE_POOL_NAME);
poolFactory.setFreeConnectionTimeout(5000); // 5 seconds
poolFactory.setKeepAlive(false);