String[] names={"A", "B", "C", "D"};
channels=new JChannel[4];
dispatchers=new RpcDispatcher[channels.length];
for(int i=0; i < channels.length; i++) {
channels[i]=createChannel(names[i]);
dispatchers[i]=new RpcDispatcher(channels[i], null, null, this);
channels[i].connect("cluster");
}
Util.waitUntilAllChannelsHaveSameSize(10000, 500, channels);
System.out.println("view A: " + channels[0].getView());