public static void main()

in transaction/src/main/java/org/apache/geode_examples/transaction/Example.java [52:67]


  public static void main(String[] args) {
    // connect to the locator using default port 10334
    ClientCache cache = new ClientCacheFactory().addPoolLocator("127.0.0.1", 10334)
        .set("log-level", "WARN").create();

    // create a local region that matches the server region
    ClientRegionFactory<String, Integer> clientRegionFactory =
        cache.createClientRegionFactory(ClientRegionShortcut.PROXY);
    Region<String, Integer> region = clientRegionFactory.create(REGION_NAME);

    Example example = new Example(region);
    example.initializeEntry();
    example.executeChildProcesses(5);

    cache.close();
  }