172173174175176177178179180181182
TreeCache cache = (TreeCache) caches.get(id); if (cache != null) { try { cache.stopService(); cache.destroyService(); caches.remove(id); } catch (Exception e) { System.out.println("Exception stopping cache " + e.getMessage()); e.printStackTrace(System.out);
174175176177178179180181182183184
113114115116117118119120121122123
// Confirm that B's tx replicated assertTrue(cacheA.exists("/EXISTS")); cacheB.stopService(); cacheB.destroyService(); while (cacheA.getMembers().size() > 1) { try {