use of org.apache.activemq.xbean.BrokerFactoryBean in project activemq-artemis by apache.
the class DestinationCursorConfigTest method createBroker.
protected BrokerService createBroker() throws Exception {
BrokerFactoryBean factory = new BrokerFactoryBean(new ClassPathResource("org/apache/activemq/broker/policy/cursor.xml"));
factory.afterPropertiesSet();
BrokerService answer = factory.getBroker();
return answer;
}
use of org.apache.activemq.xbean.BrokerFactoryBean in project activemq-artemis by apache.
the class JmsMultipleBrokersTestSupport method createBroker.
protected BrokerService createBroker(Resource configFile) throws Exception {
BrokerFactoryBean brokerFactory = new BrokerFactoryBean(configFile);
brokerFactory.afterPropertiesSet();
BrokerService broker = brokerFactory.getBroker();
brokers.put(broker.getBrokerName(), new BrokerItem(broker));
return broker;
}
use of org.apache.activemq.xbean.BrokerFactoryBean in project activemq-artemis by apache.
the class NetworkFailoverTest method createBroker.
protected BrokerService createBroker(String uri) throws Exception {
Resource resource = new ClassPathResource(uri);
BrokerFactoryBean factory = new BrokerFactoryBean(resource);
resource = new ClassPathResource(uri);
factory = new BrokerFactoryBean(resource);
factory.afterPropertiesSet();
BrokerService result = factory.getBroker();
return result;
}
use of org.apache.activemq.xbean.BrokerFactoryBean in project activemq-artemis by apache.
the class QueueMasterSlaveTestSupport method createMaster.
protected void createMaster() throws Exception {
BrokerFactoryBean brokerFactory = new BrokerFactoryBean(new ClassPathResource(getMasterXml()));
brokerFactory.afterPropertiesSet();
master = brokerFactory.getBroker();
master.start();
}
use of org.apache.activemq.xbean.BrokerFactoryBean in project activemq-artemis by apache.
the class QueueMasterSlaveTestSupport method createSlave.
protected void createSlave() throws Exception {
BrokerFactoryBean brokerFactory = new BrokerFactoryBean(new ClassPathResource(getSlaveXml()));
brokerFactory.afterPropertiesSet();
BrokerService broker = brokerFactory.getBroker();
broker.start();
slave.set(broker);
slaveStarted.countDown();
}
Aggregations