/** * Get XA connection from the provided factory and wrap it with {@link ConnectionProxy}. * * @return XA connection wrapped with {@link ConnectionProxy}. * @throws JMSException if failure occurred creating XA connection. */ @Override public Connection createConnection() throws JMSException { Connection connection = new ConnectionProxy(xaConnectionFactory.createXAConnection(), transactionHelper); if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("Created new proxied connection: " + connection); } return connection; }
/** * Get XA connection from the provided factory and wrap it with {@link ConnectionProxy}. * * @return XA connection wrapped with {@link ConnectionProxy}. * @throws JMSException if failure occurred creating XA connection. */ @Override public Connection createConnection() throws JMSException { Connection connection = new ConnectionProxy(xaConnectionFactory.createXAConnection(), transactionHelper); if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("Created new proxied connection: " + connection); } return connection; }
/** * Get XA connection from the provided factory and wrap it with {@link ConnectionProxy}. * * @return XA connection wrapped with {@link ConnectionProxy}. * @throws JMSException if failure occurred creating XA connection. */ @Override public Connection createConnection() throws JMSException { Connection connection = new ConnectionProxy(xaConnectionFactory.createXAConnection(), transactionHelper); if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("Created new proxied connection: " + connection); } return connection; }
/** * Get XA connection from the provided factory with credentials and wrap it with {@link ConnectionProxy}. * * @param userName * @param password * @return XA connection wrapped with {@link ConnectionProxy}. * @throws JMSException if failure occurred creating XA connection. */ @Override public Connection createConnection(String userName, String password) throws JMSException { Connection connection = new ConnectionProxy(xaConnectionFactory.createXAConnection(userName, password), transactionHelper); if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("Created new proxied connection: " + connection); } return connection; }
/** * Get XA connection from the provided factory with credentials and wrap it with {@link ConnectionProxy}. * * @param userName * @param password * @return XA connection wrapped with {@link ConnectionProxy}. * @throws JMSException if failure occurred creating XA connection. */ @Override public Connection createConnection(String userName, String password) throws JMSException { Connection connection = new ConnectionProxy(xaConnectionFactory.createXAConnection(userName, password), transactionHelper); if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("Created new proxied connection: " + connection); } return connection; }
/** * Get XA connection from the provided factory with credentials and wrap it with {@link ConnectionProxy}. * * @param userName * @param password * @return XA connection wrapped with {@link ConnectionProxy}. * @throws JMSException if failure occurred creating XA connection. */ @Override public Connection createConnection(String userName, String password) throws JMSException { Connection connection = new ConnectionProxy(xaConnectionFactory.createXAConnection(userName, password), transactionHelper); if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("Created new proxied connection: " + connection); } return connection; }