@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; }
@Bean public ActiveMQConnectionFactory jmsConnectionFactory() { ActiveMQConnectionFactory activeMQConnectionFactory = new ActiveMQConnectionFactory( "vm://localhost?broker.persistent=false"); activeMQConnectionFactory.setTrustAllPackages(true); return activeMQConnectionFactory; }
@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"); }
@PostConstruct public void init() { ((ActiveMQConnectionFactory) this.jmsConnectionFactory).setTrustAllPackages(true); }
public ConnectionFactory getConnectionFactory() { ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(); connectionFactory.setBrokerURL(address); connectionFactory.setTrustAllPackages(true); return connectionFactory; }
public void connect() throws JMSException { LOG.info("Connecting to broker {} on user {}", config.url(), config.username()); final ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(config.url()); connectionFactory.setUserName(config.username()); connectionFactory.setPassword(config.password()); connectionFactory.setTrustAllPackages(true); connection = connectionFactory.createConnection(); connection.start(); }
public void connect() throws JMSException { LOG.info("Connecting to broker {} on user {}", config.url(), config.username()); final ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(config.url()); connectionFactory.setUserName(config.username()); connectionFactory.setPassword(config.password()); connectionFactory.setTrustAllPackages(true); connection = connectionFactory.createConnection(); connection.start(); }
public ConnectionFactory connectionFactory(){ ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("tcp://localhost:61616"); factory.setTrustAllPackages(true); return factory;