// No ROUTE lets timeout...
if (cb != null)
cb.messagingTimedOut();
break;
case ALLTOONE :
MessageAggregator mr = obtainMA(key, route);
mr.setCallBack(cb);
return mr.getBarrier();
}
} else {
switch (route) {
case ALLTOONE :
Message mesg = MessageFactory.createMessage(route);
mesg.setAggregationKey(key);
try {
if (__logger.isLoggable(Level.FINE)) {
__logger.fine("Sending ALLTOONE ...."
+ mesg.toString() + "To " + getElectedInstance());
}
//gms.getGroupHandle().sendMessage
//(this.componentName, getElectedInstance(), mesg.toBytes());
gms.getGroupHandle().sendMessage
(this.componentName, mesg.toBytes());
} catch (Exception e) {
e.printStackTrace();
// FIX ME.
}
break;
case ONETOALL :
MessageAggregator mr = obtainMA(key, route);
return mr.getBarrier();
}
}
return null;