@Override public void deleteSubscription(String clientId, String subscriptionName) throws IOException { TransactionContext c = persistenceAdapter.getTransactionContext(); try { adapter.doDeleteSubscription(c, destination, clientId, subscriptionName); } catch (SQLException e) { JDBCPersistenceAdapter.log("JDBC Failure: ", e); throw IOExceptionSupport.create("Failed to remove subscription for: " + clientId + ". Reason: " + e, e); } finally { c.close(); resetBatching(clientId, subscriptionName); } }
private void removeConsumerDestination(ActiveMQQueue destination) throws IOException { TransactionContext c = getTransactionContext(); try { String id = destination.getQualifiedName(); getAdapter().doDeleteSubscription(c, destination, id, id); } catch (SQLException e) { JDBCPersistenceAdapter.log("JDBC Failure: ", e); throw IOExceptionSupport.create("Failed to remove consumer destination: " + destination, e); } finally { c.close(); } }
public void deleteSubscription(String clientId, String subscriptionName) throws IOException { TransactionContext c = persistenceAdapter.getTransactionContext(); try { adapter.doDeleteSubscription(c, destination, clientId, subscriptionName); } catch (SQLException e) { JDBCPersistenceAdapter.log("JDBC Failure: ", e); throw IOExceptionSupport.create("Failed to remove subscription for: " + clientId + ". Reason: " + e, e); } finally { c.close(); resetBatching(clientId, subscriptionName); } }
@Override public void deleteSubscription(String clientId, String subscriptionName) throws IOException { TransactionContext c = persistenceAdapter.getTransactionContext(); try { adapter.doDeleteSubscription(c, destination, clientId, subscriptionName); } catch (SQLException e) { JDBCPersistenceAdapter.log("JDBC Failure: ", e); throw IOExceptionSupport.create("Failed to remove subscription for: " + clientId + ". Reason: " + e, e); } finally { c.close(); resetBatching(clientId, subscriptionName); } }
@Override public void deleteSubscription(String clientId, String subscriptionName) throws IOException { TransactionContext c = persistenceAdapter.getTransactionContext(); try { adapter.doDeleteSubscription(c, destination, clientId, subscriptionName); } catch (SQLException e) { JDBCPersistenceAdapter.log("JDBC Failure: ", e); throw IOExceptionSupport.create("Failed to remove subscription for: " + clientId + ". Reason: " + e, e); } finally { c.close(); resetBatching(clientId, subscriptionName); } }
@Override public void deleteSubscription(String clientId, String subscriptionName) throws IOException { TransactionContext c = persistenceAdapter.getTransactionContext(); try { adapter.doDeleteSubscription(c, destination, clientId, subscriptionName); } catch (SQLException e) { JDBCPersistenceAdapter.log("JDBC Failure: ", e); throw IOExceptionSupport.create("Failed to remove subscription for: " + clientId + ". Reason: " + e, e); } finally { c.close(); resetBatching(clientId, subscriptionName); } }
private void removeConsumerDestination(ActiveMQQueue destination) throws IOException { TransactionContext c = getTransactionContext(); try { String id = destination.getQualifiedName(); getAdapter().doDeleteSubscription(c, destination, id, id); } catch (SQLException e) { JDBCPersistenceAdapter.log("JDBC Failure: ", e); throw IOExceptionSupport.create("Failed to remove consumer destination: " + destination, e); } finally { c.close(); } }
private void removeConsumerDestination(ActiveMQQueue destination) throws IOException { TransactionContext c = getTransactionContext(); try { String id = destination.getQualifiedName(); getAdapter().doDeleteSubscription(c, destination, id, id); } catch (SQLException e) { JDBCPersistenceAdapter.log("JDBC Failure: ", e); throw IOExceptionSupport.create("Failed to remove consumer destination: " + destination, e); } finally { c.close(); } }
private void removeConsumerDestination(ActiveMQQueue destination) throws IOException { TransactionContext c = getTransactionContext(); try { String id = destination.getQualifiedName(); getAdapter().doDeleteSubscription(c, destination, id, id); } catch (SQLException e) { JDBCPersistenceAdapter.log("JDBC Failure: ", e); throw IOExceptionSupport.create("Failed to remove consumer destination: " + destination, e); } finally { c.close(); } }