开发者

Gemfire region synchronization

开发者 https://www.devze.com 2023-03-27 16:09 出处:网络
I am using gemfire and currently have a client and a server. Now, the server dinamically creates some subregions in a region and puts some objects in there. I am trying to retrieve the objects wi开发者

I am using gemfire and currently have a client and a server. Now, the server dinamically creates some subregions in a region and puts some objects in there. I am trying to retrieve the objects wi开发者_C百科th the client but I can't see the objects or the subregions. How can I synchronize the regions? Is there anything else I can do?


FYI, you need to use the DynamicRegionFactory for creating distributed dynamic regions. The gemfire docs were pretty clear on that one.


Dynamic regions behave the same as the other regions in your cache and assumes the attributes of its parent region. You must begin with non-dynamic parent regions. Check if this region is working correctly. Synchronization should work this is most probably the problem with configurations. Use GF monitor to check your regions in distributed system.

Another solution is create remote function wich will create regions. In this case you can create portion regions and root regions. This solution is used in GemFire modules for Hibernate L2 cache.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号