Properties prop = new Properties();
prop.setProperty("excludeitself", "true"); // don't discard messages to
// self
DISCARD discard = new DISCARD();
discard.setProperties(prop);
discard.addIgnoreMember(exclude); // ignore messages from this member
ch.getProtocolStack().insertProtocol(discard, ProtocolStack.BELOW, "NAKACK");
}
private static void removeDISCARD(JChannel... channels) throws Exception {
for(JChannel ch:channels){