我使用下面的代码连接到远程Geode集群
ClientCache clientCache =
new ClientCacheFactory().addPoolLocator("www.abc.com", 10334).create();
Region<String, Customer> region = clientCache.getRegion("customers");
System.out.println("region => " + region);
注意:www.abc.com:10334可以从我的机器访问。
日志显示区域已连接到 LocalRegion。
如何连接到远程 Geode 集群区域?我不想使用 Spring 数据。
最佳答案
您需要确保正在创建 PROXY
或 PROXY_CACHE
区域。使用这样的东西:
clientCache
.createClientRegionFactory(ClientRegionShortcut.PROXY)
.create("customers");
关于java - 无法从 Java 连接到远程 Geode 集群,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58896969/