Setting @EnableGemFireHttpSession regionName dynamically

非 Y 不嫁゛ 提交于 2019-12-25 02:19:22

问题


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.



来源:https://stackoverflow.com/questions/52144735/setting-enablegemfirehttpsession-regionname-dynamically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!