void executeChildProcess()

in transaction/src/main/java/org/apache/geode_examples/transaction/Example.java [73:86]


  void executeChildProcess(int id) {
    String[] command = new String[5];
    command[0] = constructJVMPath();
    command[1] = "-classpath";
    command[2] = System.getProperty("java.class.path") + ":build/libs/transaction.jar";
    command[3] = "org.apache.geode_examples.transaction.Incrementer";
    command[4] = Integer.toString(id);
    try {
      children.put(id, Runtime.getRuntime().exec(command));
      System.out.println("Executed child " + id);
    } catch (IOException ioe) {
      ioe.printStackTrace();
    }
  }