/** * INTERNAL: * Add a remote Connection to a remote service. */ public void addConnectionToExternalService(RemoteConnection connection) { if (connection == null) { return; } try { connectBackToRemote(connection); connectionsToExternalServices.put(connection.getServiceId().getId(), connection); Object[] args = { connection.getServiceId() }; rcm.logDebug("received_connection_from", args); } catch (Exception exception) { try { rcm.handleException(CommunicationException.errorSendingConnectionService(connection.toString(), exception)); } catch (RuntimeException reThrownException) { Object[] args = { connection.getServiceId(), reThrownException }; rcm.logWarning("problem_adding_connection", args); if (!shouldRemoveConnectionOnError) { throw reThrownException; } } } }
/** * INTERNAL: * Add a remote Connection to a remote service. */ public void addConnectionToExternalService(RemoteConnection connection) { if (connection == null) { return; } try { connectBackToRemote(connection); connectionsToExternalServices.put(connection.getServiceId().getId(), connection); Object[] args = { connection.getServiceId() }; rcm.logDebug("received_connection_from", args); } catch (Exception exception) { try { rcm.handleException(CommunicationException.errorSendingConnectionService(connection.toString(), exception)); } catch (RuntimeException reThrownException) { Object[] args = { connection.getServiceId(), reThrownException }; rcm.logWarning("problem_adding_connection", args); if (!shouldRemoveConnectionOnError) { throw reThrownException; } } } }
/** * INTERNAL: * Add a remote Connection to a remote service. */ public void addConnectionToExternalService(RemoteConnection connection) { if (connection == null) { return; } try { connectBackToRemote(connection); connectionsToExternalServices.put(connection.getServiceId().getId(), connection); Object[] args = { connection.getServiceId() }; rcm.logDebug("received_connection_from", args); } catch (Exception exception) { try { rcm.handleException(CommunicationException.errorSendingConnectionService(connection.toString(), exception)); } catch (RuntimeException reThrownException) { Object[] args = { connection.getServiceId(), reThrownException }; rcm.logWarning("problem_adding_connection", args); if (!shouldRemoveConnectionOnError) { throw reThrownException; } } } }