@Override public XAJMSContext createXAContext(String userName, String password) { try { ActiveMQConnection connection = createConnectionInternal(userName, password, true, ActiveMQConnection.TYPE_GENERIC_CONNECTION); return connection.createXAContext(); } catch (JMSSecurityException e) { throw new JMSSecurityRuntimeException(e.getMessage(), e.getErrorCode(), e); } catch (JMSException e) { throw JmsExceptionUtils.convertToRuntimeException(e); } }
@Override public XAJMSContext createXAContext(String userName, String password) { try { ActiveMQConnection connection = createConnectionInternal(userName, password, true, ActiveMQConnection.TYPE_GENERIC_CONNECTION); return connection.createXAContext(); } catch (JMSSecurityException e) { throw new JMSSecurityRuntimeException(e.getMessage(), e.getErrorCode(), e); } catch (JMSException e) { throw JmsExceptionUtils.convertToRuntimeException(e); } }
@Override public XAJMSContext createXAContext(String userName, String password) { try { ActiveMQConnection connection = createConnectionInternal(userName, password, true, ActiveMQConnection.TYPE_GENERIC_CONNECTION); return connection.createXAContext(); } catch (JMSSecurityException e) { throw new JMSSecurityRuntimeException(e.getMessage(), e.getErrorCode(), e); } catch (JMSException e) { throw JmsExceptionUtils.convertToRuntimeException(e); } }
@Override public XAJMSContext createXAContext(String userName, String password) { try { ActiveMQConnection connection = createConnectionInternal(userName, password, true, ActiveMQConnection.TYPE_GENERIC_CONNECTION); return connection.createXAContext(); } catch (JMSSecurityException e) { throw new JMSSecurityRuntimeException(e.getMessage(), e.getErrorCode(), e); } catch (JMSException e) { throw JmsExceptionUtils.convertToRuntimeException(e); } }
@Override public XAJMSContext createXAContext(String userName, String password) { try { ActiveMQConnection connection = createConnectionInternal(userName, password, true, ActiveMQConnection.TYPE_GENERIC_CONNECTION); return connection.createXAContext(); } catch (JMSSecurityException e) { throw new JMSSecurityRuntimeException(e.getMessage(), e.getErrorCode(), e); } catch (JMSException e) { throw JmsExceptionUtils.convertToRuntimeException(e); } }