handler.handleMessage(dr, this);
}
catch (Exception e)
{
log.error("Failed to handle message", e);
throw new HandleCallbackException(e.getMessage(), e);
}
}
else if (parameter instanceof ConnectionFactoryUpdate)
{
if (connectionfactoryCallbackHandler == null)
{
log.warn("ConnectionFactoryUpdate was received but there is no callbackHandler set");
}
else
{
ConnectionFactoryUpdate viewChange = (ConnectionFactoryUpdate)parameter;
if (trace) { log.trace(this + " receiving cluster view change " + viewChange); }
connectionfactoryCallbackHandler.handleMessage(viewChange);
}
}
else
{
throw new HandleCallbackException("Unknow callback type: " + callback);
}
}