protected String buildKey(String methodName_, int nbArgs_) {
return String.format("%s.%d", methodName_, nbArgs_);
}
protected void handleException(final ResponseHandler<?> handler, String serviceName, Throwable e) {
if (e instanceof ApplicationException) {
ApplicationException appEx = (ApplicationException)e;
_logger.warn(String.format("Failed to invoke service e=%s, cmp=%s",
serviceName, targetCmp.getClass().getName()), appEx);
for (Message message : appEx.getMessages()) {
handler.addMessage(message);
}
} else if (Throwables.getRootCause(e) instanceof ConnectException) {
_logger.error(String.format("Failed to connect service=%s, cmp=%s",