use of org.apache.activemq.broker.BrokerService in project activemq-artemis by apache.
the class QueueOutboundBridgeReconnectTest method createSecondBroker.
protected BrokerService createSecondBroker() throws Exception {
BrokerService broker = new BrokerService();
broker.setBrokerName("broker2");
broker.setPersistent(false);
broker.setUseJmx(false);
broker.addConnector("tcp://localhost:61617");
broker.addConnector("vm://broker2");
return broker;
}
use of org.apache.activemq.broker.BrokerService in project activemq-artemis by apache.
the class TopicBridgeStandaloneReconnectTest method createFirstBroker.
protected BrokerService createFirstBroker() throws Exception {
BrokerService broker = new BrokerService();
broker.setBrokerName("broker1");
broker.setPersistent(false);
broker.setUseJmx(false);
broker.addConnector("tcp://localhost:61616");
return broker;
}
use of org.apache.activemq.broker.BrokerService in project activemq-artemis by apache.
the class TopicOutboundBridgeReconnectTest method createFirstBroker.
protected BrokerService createFirstBroker() throws Exception {
BrokerService broker = new BrokerService();
broker.setBrokerName("broker1");
broker.setPersistent(false);
broker.setUseJmx(false);
broker.addConnector("tcp://localhost:61616");
broker.addConnector("vm://broker1");
SimpleJmsTopicConnector jmsTopicConnector = new SimpleJmsTopicConnector();
jmsTopicConnector.setOutboundTopicBridges(new OutboundTopicBridge[] { new OutboundTopicBridge("RECONNECT.TEST.TOPIC") });
jmsTopicConnector.setOutboundTopicConnectionFactory(new ActiveMQConnectionFactory("tcp://localhost:61617"));
broker.setJmsBridgeConnectors(new JmsConnector[] { jmsTopicConnector });
return broker;
}
use of org.apache.activemq.broker.BrokerService in project activemq-artemis by apache.
the class BrokerPropertiesTest method testPropertiesFile.
public void testPropertiesFile() throws Exception {
BrokerService broker = BrokerFactory.createBroker("properties:org/apache/activemq/config/broker.properties");
LOG.info("Created broker: " + broker);
assertNotNull(broker);
assertEquals("isUseJmx()", false, broker.isUseJmx());
assertEquals("isPersistent()", false, broker.isPersistent());
assertEquals("getBrokerName()", "Cheese", broker.getBrokerName());
broker.stop();
}
use of org.apache.activemq.broker.BrokerService in project activemq-artemis by apache.
the class OpenTypeSupportTest method setUp.
@Before
public void setUp() throws Exception {
brokerService = new BrokerService();
brokerService.setPersistent(false);
brokerService.setUseJmx(true);
connectionUri = brokerService.addConnector(BROKER_ADDRESS).getPublishableConnectString();
brokerService.start();
connectionFactory = new ActiveMQConnectionFactory(connectionUri);
sendMessage();
}
Aggregations