Setting @EnableGemFireHttpSession regionName dynam

2019-08-23 10:44发布

问题:

Is there any way to provide GemFire regionName dynamically during runtime. Currently we are hardCoding the regionName "testRegion". Sample Code is below. Appreciate any help

@Configuration
@EnableGemFireHttpSession(poolName = "gemfirePool", regionName="testRegion")
public class TestConfig {

//Some Code here

}

回答1:

Yes, great timing! There is now as of Spring Session for Apache Geode/Pivotal GemFire 2.0.5.RELEASE as well as 2.1.0.M1. See here and alternatively, here.

I recently made the announcement (and blog) with these changes, here.