public String getMessageReference(MessageId messageId) throws IOException { long id = messageId.getBrokerSequenceId(); // Get a connection and pull the message out of the DB TransactionContext c = persistenceAdapter.getTransactionContext(); try { return adapter.doGetMessageReference(c, id); } catch (IOException e) { throw IOExceptionSupport.create("Failed to broker message: " + messageId + " in container: " + e, e); } catch (SQLException e) { JDBCPersistenceAdapter.log("JDBC Failure: ", e); throw IOExceptionSupport.create("Failed to broker message: " + messageId + " in container: " + e, e); } finally { c.close(); } }
public String getMessageReference(MessageId messageId) throws IOException { long id = messageId.getBrokerSequenceId(); // Get a connection and pull the message out of the DB TransactionContext c = persistenceAdapter.getTransactionContext(); try { return adapter.doGetMessageReference(c, id); } catch (IOException e) { throw IOExceptionSupport.create("Failed to broker message: " + messageId + " in container: " + e, e); } catch (SQLException e) { JDBCPersistenceAdapter.log("JDBC Failure: ", e); throw IOExceptionSupport.create("Failed to broker message: " + messageId + " in container: " + e, e); } finally { c.close(); } }
public String getMessageReference(MessageId messageId) throws IOException { long id = messageId.getBrokerSequenceId(); // Get a connection and pull the message out of the DB TransactionContext c = persistenceAdapter.getTransactionContext(); try { return adapter.doGetMessageReference(c, id); } catch (IOException e) { throw IOExceptionSupport.create("Failed to broker message: " + messageId + " in container: " + e, e); } catch (SQLException e) { JDBCPersistenceAdapter.log("JDBC Failure: ", e); throw IOExceptionSupport.create("Failed to broker message: " + messageId + " in container: " + e, e); } finally { c.close(); } }
public String getMessageReference(MessageId messageId) throws IOException { long id = messageId.getBrokerSequenceId(); // Get a connection and pull the message out of the DB TransactionContext c = persistenceAdapter.getTransactionContext(); try { return adapter.doGetMessageReference(c, id); } catch (IOException e) { throw IOExceptionSupport.create("Failed to broker message: " + messageId + " in container: " + e, e); } catch (SQLException e) { JDBCPersistenceAdapter.log("JDBC Failure: ", e); throw IOExceptionSupport.create("Failed to broker message: " + messageId + " in container: " + e, e); } finally { c.close(); } }
public String getMessageReference(MessageId messageId) throws IOException { long id = messageId.getBrokerSequenceId(); // Get a connection and pull the message out of the DB TransactionContext c = persistenceAdapter.getTransactionContext(); try { return adapter.doGetMessageReference(c, id); } catch (IOException e) { throw IOExceptionSupport.create("Failed to broker message: " + messageId + " in container: " + e, e); } catch (SQLException e) { JDBCPersistenceAdapter.log("JDBC Failure: ", e); throw IOExceptionSupport.create("Failed to broker message: " + messageId + " in container: " + e, e); } finally { c.close(); } }