public void consumeSignal(Signal signal) throws ActionException {
if (logger.isLoggable(Level.FINER)) {
logger.finer("MessageReceiver Consumed: " + signal);
}
if (signal instanceof MessageSignal) {
MessageSignal ms = MessageSignal.class.cast(signal);
if (ms.getTargetComponent().equalsIgnoreCase(componentName)) {
if (this.serverName == null ||
this.serverName.equalsIgnoreCase(serverName)) {
if (logger.isLoggable(Level.FINER)) {
logger.finer("MessageReceiver Processing.... "
+ ms.getMessage());
}
processMessage(ms.getMessage(), signal.getMemberToken());
}
}
}
}