Reputation: 25989
My geode client is working to persist and retrieve the data in the specific region.
ClientRegionFactoryBean<Integer, Book> region =
new ClientRegionFactoryBean<>();
region.setName("Book");
region.setPool(gemfirePool);
region.setCache(cache.getObject());
region.setShortcut(ClientRegionShortcut.PROXY);
however, if i am trying to use the region to query for another region, it doesn't allow me to do that:
org.apache.geode.cache.query.QueryInvalidException: Should not execute region.query with a different region in the from clause: Book was not present in:select * from /Staff
any idea ?
Upvotes: 0
Views: 86
Reputation: 1301
You should obtain the QueryService from the ClientCache
i.e clientCache.getQueryService();
rather than region.query();
Upvotes: 1