setHandler = new SetAttributesRequestHandler(allAttributes, false);
SessionTestUtil.invokeRequest(managersB[0], setHandler, null);
validateNewSession(setHandler);
String idB = setHandler.getSessionId();
BasicRequestHandler getHandler = new BasicRequestHandler(allAttributes.keySet(), false);
SessionTestUtil.invokeRequest(managersA[1], getHandler, idA);
validateExpectedAttributes(allAttributes, getHandler);
getHandler = new BasicRequestHandler(allAttributes.keySet(), false);
SessionTestUtil.invokeRequest(managersB[1], getHandler, idB);
validateExpectedAttributes(allAttributes, getHandler);
// Undeploy one webapp on node 1
managersB[1].stop();
log.info("jbcmB1 stopped");
// Deploy again
managersB[1] = this.startManager(warnameB, cacheContainers[1]);
log.info("jbcmB1 started");
// log.info(dcmFactories[0].getCache().getMembers());
// log.info(dcmFactories[1].getCache().getMembers());
getHandler = new BasicRequestHandler(allAttributes.keySet(), false);
SessionTestUtil.invokeRequest(managersA[1], getHandler, idA);
validateExpectedAttributes(allAttributes, getHandler);
getHandler = new BasicRequestHandler(allAttributes.keySet(), false);
SessionTestUtil.invokeRequest(managersB[1], getHandler, idB);
validateExpectedAttributes(allAttributes, getHandler);
}