public void commitAdd(ConnectionContext context, final MessageId messageId, final long preparedSequenceId, final long newSequence) throws IOException { TransactionContext c = getTransactionContext(context); try { getAdapter().doCommitAddOp(c, preparedSequenceId, newSequence); } catch (SQLException e) { JDBCPersistenceAdapter.log("JDBC Failure: ", e); throw IOExceptionSupport.create("Failed to commit add: " + messageId + ". Reason: " + e, e); } finally { c.close(); } }
public void commitAdd(ConnectionContext context, MessageId messageId, long preparedSequenceId) throws IOException { TransactionContext c = getTransactionContext(context); try { long sequence = (Long)messageId.getEntryLocator(); getAdapter().doCommitAddOp(c, preparedSequenceId, sequence); } catch (SQLException e) { JDBCPersistenceAdapter.log("JDBC Failure: ", e); throw IOExceptionSupport.create("Failed to commit add: " + messageId + ". Reason: " + e, e); } finally { c.close(); } }
public void commitAdd(ConnectionContext context, MessageId messageId, long preparedSequenceId) throws IOException { TransactionContext c = getTransactionContext(context); try { long sequence = (Long)messageId.getEntryLocator(); getAdapter().doCommitAddOp(c, preparedSequenceId, sequence); } catch (SQLException e) { JDBCPersistenceAdapter.log("JDBC Failure: ", e); throw IOExceptionSupport.create("Failed to commit add: " + messageId + ". Reason: " + e, e); } finally { c.close(); } }
public void commitAdd(ConnectionContext context, MessageId messageId, long preparedSequenceId) throws IOException { TransactionContext c = getTransactionContext(context); try { long sequence = (Long)messageId.getEntryLocator(); getAdapter().doCommitAddOp(c, preparedSequenceId, sequence); } catch (SQLException e) { JDBCPersistenceAdapter.log("JDBC Failure: ", e); throw IOExceptionSupport.create("Failed to commit add: " + messageId + ". Reason: " + e, e); } finally { c.close(); } }