private void initOtherId() { VM vm = getOtherVm(); vm.invoke( new CacheSerializableRunnable("Connect") { public void run2() throws CacheException { getCache(); } }); this.otherId = (DistributedMember) vm.invoke(ProxyDUnitTest.class, "getVMDistributedMember"); }
private void doCreateOtherVm() { VM vm = getOtherVm(); vm.invoke( new CacheSerializableRunnable("create root") { public void run2() throws CacheException { AttributesFactory af = new AttributesFactory(); af.setDataPolicy(DataPolicy.REPLICATE); af.setScope(Scope.DISTRIBUTED_ACK); createRootRegion("ProxyDUnitTest", af.create()); } }); }