516517518519520521522523524525526
client.deleteNamespaceData(xpathId); } catch (BAMException e) { throw e; } finally { if (client != null) { client.cleanup(); } } } public void updateMessageProperty(String value, int messagePropertyKeyId) throws BAMException { BAMConfigurationDSClient client = null;
529530531532533534535536537538539
client.updateMessageProperty(value, messagePropertyKeyId); } catch (BAMException e) { throw e; } finally { if (client != null) { client.cleanup(); } } } }
152153154155156157158159160161162
} } catch (CryptoException e) { throw new BAMException("Unable to encrypt password of server " + serverUrl, e); } finally { if (bamConfigurationDSClient != null) { bamConfigurationDSClient.cleanup(); } } return addingServerStatus; }
190191192193194195196197198199200
log.error("Can not delete monitored server entry from DB", e); } } finally { if (client != null) { client.cleanup(); } } } public void updateMonitoredServer(ServerDO server) throws BAMException {
211212213214215216217218219220221
BAMUtil.getServersListCache().addServer(server); } catch (CryptoException e) { throw new BAMException("Unable to encrypt password of server " + server.getServerURL(), e); } finally { if (client != null) { client.cleanup(); } } } public List<ServerDO> getMonitoredServers(int tenantID) throws BAMException {
238239240241242243244245246247248
} } catch (CryptoException e) { throw new BAMException("Cannot decrypt password for server ", e); } finally { if (client != null) { client.cleanup(); } } return new ArrayList<ServerDO>(); }
264265266267268269270271272273274
285286287288289290291292293294295
} catch (CryptoException e) { throw new BAMException("Cannot decrypt password for server " + server.getServerURL(), e); } finally { if (client != null) { client.cleanup(); } } return server; }
305306307308309310311312313314315
324325326327328329330331332333334
client = BAMUtil.getBAMConfigurationDSClient(); client.deactivateServer(serverID); BAMUtil.getServersListCache().removeServer(serverID); } finally { if (client != null) { client.cleanup(); } } } public void activateServer(int serverID, String subscriptionID) throws BAMException {