Apache Geode Native Client Cache :: createRegion:region存在于本地缓存中

时间:2018-02-05 17:38:46

标签: gemfire geode

要回答this question我正在使用Pivotal Native Client创建多个local client caches,因此每个本地客户端缓存都有自己的 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>3.0.0</version> <configuration> <attachClasses>true</attachClasses> </configuration> </plugin> 。我遇到了一个问题,即from the QuickStart example在缓存,池和区域工厂被创建为默认值之后,无论使用什么类型的Listener,例如RegionShortcut或任何其他

.LOCAL

然后:

RegionFactory rf = c.CreateRegionFactory(RegionShortcut.LOCAL);

适用于客户端缓存的第一个实例,但是一旦尝试任何其他实例作为另一个本地客户端缓存,则上面的代码会给出错误:

IRegion<string, string> region = rf.SetPoolName(poolName).Create<string, string>("exampleRegion");

An unhandled exception of type 'Apache.Geode.Client.RegionExistsException' occurred in Pivotal.Gemfire.dll

那么如何在同一个C#项目中创建许多本地客户端缓存?

0 个答案:

没有答案
相关问题