/** * Get the password * * @return The value */ public String getPassword() { if (logger.isTraceEnabled()) { logger.trace("getPassword()"); } return raProperties.getPassword(); }
/** * Get the password * * @return The value */ public String getPassword() { if (logger.isTraceEnabled()) { logger.trace("getPassword()"); } return raProperties.getPassword(); }
/** * Setup the factory */ protected void setup() throws ActiveMQException { raProperties.init(); defaultActiveMQConnectionFactory = newConnectionFactory(raProperties); recoveryActiveMQConnectionFactory = createRecoveryActiveMQConnectionFactory(raProperties); Map<String, String> recoveryConfProps = new HashMap<>(); recoveryConfProps.put(XARecoveryConfig.JNDI_NAME_PROPERTY_KEY, getJndiName()); recoveryManager.register(recoveryActiveMQConnectionFactory, raProperties.getUserName(), raProperties.getPassword(), recoveryConfProps); }
/** * Setup the factory */ protected void setup() throws ActiveMQException { raProperties.init(); defaultActiveMQConnectionFactory = newConnectionFactory(raProperties); recoveryActiveMQConnectionFactory = createRecoveryActiveMQConnectionFactory(raProperties); Map<String, String> recoveryConfProps = new HashMap<>(); recoveryConfProps.put(XARecoveryConfig.JNDI_NAME_PROPERTY_KEY, getJndiName()); recoveryManager.register(recoveryActiveMQConnectionFactory, raProperties.getUserName(), raProperties.getPassword(), recoveryConfProps); }
/** * Constructor * * @param prop The resource adapter properties * @param type The connection type */ public ActiveMQRAConnectionRequestInfo(final ActiveMQRAProperties prop, final int type) { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("constructor(" + prop + ")"); } userName = prop.getUserName(); password = prop.getPassword(); clientID = prop.getClientID(); this.type = type; transacted = true; acknowledgeMode = Session.AUTO_ACKNOWLEDGE; }
/** * Constructor * * @param prop The resource adapter properties * @param type The connection type */ public ActiveMQRAConnectionRequestInfo(final ActiveMQRAProperties prop, final int type) { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("constructor(" + prop + ")"); } userName = prop.getUserName(); password = prop.getPassword(); clientID = prop.getClientID(); this.type = type; transacted = true; acknowledgeMode = Session.AUTO_ACKNOWLEDGE; }
/** * Fill in default values if they are missing * * @param prop The resource adapter properties */ public void setDefaults(final ActiveMQRAProperties prop) { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("setDefaults(" + prop + ")"); } if (userName == null) { userName = prop.getUserName(); } if (password == null) { password = prop.getPassword(); } if (clientID == null) { clientID = prop.getClientID(); } }
/** * Fill in default values if they are missing * * @param prop The resource adapter properties */ public void setDefaults(final ActiveMQRAProperties prop) { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("setDefaults(" + prop + ")"); } if (userName == null) { userName = prop.getUserName(); } if (password == null) { password = prop.getPassword(); } if (clientID == null) { clientID = prop.getClientID(); } }