channel1=new JChannel(properties);
System.out.print("Connecting to channel...");
channel1.connect(groupName);
System.out.println("channel1 connected, view is " + channel1.getView());
adapter1=new PullPushAdapter(channel1);
if(USE_DEBUGGER) {
debugger1=new Debugger(channel1, CUMMULATIVE, "channel 1");
debugger1.start();
}
// sleep one second before second member joins
try {
Thread.sleep(1000);
}
catch(InterruptedException ex) {
}
channel2=new JChannel(properties);
channel2.connect(groupName);
System.out.println("channel2 connected, view is " + channel2.getView());
adapter2=new PullPushAdapter(channel2);
if(USE_DEBUGGER) {
debugger2=new Debugger(channel2, CUMMULATIVE, "channel 2");
debugger2.start();
}