This is an automated email from the ASF dual-hosted git repository. mcmellawatt pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/geode-examples.git
The following commit(s) were added to refs/heads/develop by this push: new 15f5264 GEODE-6060: Properly registering example cache listener 15f5264 is described below commit 15f5264a11a9c89c53e5c0d6410e532b6168733e Author: Ryan McMahon <rmcma...@pivotal.io> AuthorDate: Mon Jan 14 10:08:46 2019 -0800 GEODE-6060: Properly registering example cache listener --- listener/src/main/java/org/apache/geode_examples/listener/Example.java | 1 + 1 file changed, 1 insertion(+) diff --git a/listener/src/main/java/org/apache/geode_examples/listener/Example.java b/listener/src/main/java/org/apache/geode_examples/listener/Example.java index 95f35e4..c10a161 100644 --- a/listener/src/main/java/org/apache/geode_examples/listener/Example.java +++ b/listener/src/main/java/org/apache/geode_examples/listener/Example.java @@ -44,6 +44,7 @@ public class Example { // create a local region that matches the server region ClientRegionFactory<Integer, String> clientRegionFactory = cache.createClientRegionFactory(ClientRegionShortcut.PROXY); + clientRegionFactory.addCacheListener(new ExampleCacheListener()); Region<Integer, String> region = clientRegionFactory.create("example-region"); example.putEntries(region);