public ActiveMQConnectionFactory(URI brokerURL) { setBrokerURL(brokerURL.toString()); }
@SuppressWarnings({ "unchecked", "rawtypes" }) @Override public void buildFromProperties(Properties properties) { if (properties == null) { properties = new Properties(); } String temp = properties.getProperty(Context.PROVIDER_URL); if (temp == null || temp.length() == 0) { temp = properties.getProperty("brokerURL"); } if (temp != null && temp.length() > 0) { setBrokerURL(temp); } Map<String, Object> p = new HashMap(properties); buildFromMap(p); }
public ActiveMQConnectionFactory(String userName, String password, URI brokerURL) { setUserName(userName); setPassword(password); setBrokerURL(brokerURL.toString()); }
@Bean public ActiveMQConnectionFactory connectionFactory() { ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(); connectionFactory.setBrokerURL(this.brokerUrl); connectionFactory.setTrustAllPackages(true); return connectionFactory; }
@Bean public ActiveMQConnectionFactory connectionFactory() { ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(); connectionFactory.setBrokerURL(this.brokerUrl); connectionFactory.setTrustAllPackages(true); return connectionFactory; }
@Bean public ActiveMQConnectionFactory connectionFactory() { ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(); connectionFactory.setBrokerURL(this.brokerUrl); connectionFactory.setTrustAllPackages(true); return connectionFactory; }
public ActiveMQConnectionFactory(String userName, String password, String brokerURL) { setUserName(userName); setPassword(password); setBrokerURL(brokerURL); }
@Before public void setup() { ActiveMqTestUtils.prepare(); this.connectionFactory = new ActiveMQConnectionFactory(); this.connectionFactory.setBrokerURL("vm://localhost?broker.persistent=false"); this.connectionFactory.setTrustAllPackages(true); }
@Before public void setup() { ActiveMqTestUtils.prepare(); ActiveMQConnectionFactory targetConnectionFactory = new ActiveMQConnectionFactory(); targetConnectionFactory.setBrokerURL("vm://localhost?broker.persistent=false"); targetConnectionFactory.setTrustAllPackages(true); this.connectionFactory = new CachingConnectionFactory(targetConnectionFactory); this.topic = new ActiveMQTopic("testTopic"); this.queue = new ActiveMQQueue("testQueue"); }
public ActiveMQConnectionFactory(String userName, String password, URI brokerURL) { setUserName(userName); setPassword(password); setBrokerURL(brokerURL.toString()); }
public ActiveMQConnectionFactory(String userName, String password, URI brokerURL) { setUserName(userName); setPassword(password); setBrokerURL(brokerURL.toString()); }
public ActiveMQConnectionFactory(String userName, String password, URI brokerURL) { setUserName(userName); setPassword(password); setBrokerURL(brokerURL.toString()); }
public ActiveMQConnectionFactory(String userName, String password, String brokerURL) { setUserName(userName); setPassword(password); setBrokerURL(brokerURL); }
public ActiveMQConnectionFactory(String userName, String password, String brokerURL) { setUserName(userName); setPassword(password); setBrokerURL(brokerURL); }
public ActiveMQConnectionFactory(String userName, String password, String brokerURL) { setUserName(userName); setPassword(password); setBrokerURL(brokerURL); }
public void setBrokerUrl(String brokerURL) { if (getTargetConnectionFactory() instanceof ActiveMQConnectionFactory) { ((ActiveMQConnectionFactory) getTargetConnectionFactory()).setBrokerURL(brokerURL); } }
public ConnectionFactory getConnectionFactory() { ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(); connectionFactory.setBrokerURL(address); connectionFactory.setTrustAllPackages(true); return connectionFactory; }
public ActiveMQConnectionFactory(String userName, String password, String brokerURL) { setUserName(userName); setPassword(password); setBrokerURL(brokerURL); }
public PooledConnectionFactory create(String brokerClusterUrl){ ActiveMQConnectionFactory mqConnectionFactory = new ActiveMQConnectionFactory(); mqConnectionFactory.setBrokerURL(brokerClusterUrl); mqConnectionFactory.setTransportListener(this); //mqConnectionFactory. PooledConnectionFactory connectionFactory = new JimPooledConnectionFactory(mqConnectionFactory); connectionFactory.setMaxConnections(1); connectionFactory.setCreateConnectionOnStartup(true); return connectionFactory; } @Override
public PooledConnectionFactory create(String brokerClusterUrl){ ActiveMQConnectionFactory mqConnectionFactory = new ActiveMQConnectionFactory(); mqConnectionFactory.setBrokerURL(brokerClusterUrl); mqConnectionFactory.setTransportListener(this); //mqConnectionFactory. PooledConnectionFactory connectionFactory = new JimPooledConnectionFactory(mqConnectionFactory); connectionFactory.setMaxConnections(10); connectionFactory.setTimeBetweenExpirationCheckMillis(1000); //connectionFactory.setCreateConnectionOnStartup(true); return connectionFactory; }