use of org.apache.activemq.xbean.BrokerFactoryBean in project activemq-artemis by apache.
the class KahaQueueTest method createBroker.
@Override
protected BrokerService createBroker(String uri) throws Exception {
Resource resource = new ClassPathResource(config);
BrokerFactoryBean brokerFactory = new BrokerFactoryBean(resource);
resource = new ClassPathResource(config);
brokerFactory = new BrokerFactoryBean(resource);
brokerFactory.afterPropertiesSet();
return brokerFactory.getBroker();
}
use of org.apache.activemq.xbean.BrokerFactoryBean in project activemq-artemis by apache.
the class TwoBrokerTopicSendReceiveUsingTcpTest method setUp.
@Override
protected void setUp() throws Exception {
BrokerFactoryBean brokerFactory;
brokerFactory = new BrokerFactoryBean(new ClassPathResource("org/apache/activemq/usecases/receiver.xml"));
brokerFactory.afterPropertiesSet();
receiverBroker = brokerFactory.getBroker();
brokerFactory = new BrokerFactoryBean(new ClassPathResource("org/apache/activemq/usecases/sender.xml"));
brokerFactory.afterPropertiesSet();
senderBroker = brokerFactory.getBroker();
super.setUp();
}
use of org.apache.activemq.xbean.BrokerFactoryBean in project activemq-artemis by apache.
the class PublishOnQueueConsumedMessageUsingActivemqXMLTest method createBroker.
protected BrokerService createBroker(Resource resource) throws Exception {
BrokerFactoryBean factory = new BrokerFactoryBean(resource);
factory.afterPropertiesSet();
BrokerService broker = factory.getBroker();
return broker;
}
use of org.apache.activemq.xbean.BrokerFactoryBean in project activemq-artemis by apache.
the class PublishOnTopicConsumerMessageUsingActivemqXMLTest method createBroker.
protected BrokerService createBroker(Resource resource) throws Exception {
BrokerFactoryBean factory = new BrokerFactoryBean(resource);
factory.afterPropertiesSet();
BrokerService broker = factory.getBroker();
return broker;
}
use of org.apache.activemq.xbean.BrokerFactoryBean in project activemq-artemis by apache.
the class IndividualDeadLetterViaXmlTest method createBroker.
@Override
protected BrokerService createBroker() throws Exception {
BrokerFactoryBean factory = new BrokerFactoryBean(new ClassPathResource("org/apache/activemq/broker/policy/individual-dlq.xml"));
factory.afterPropertiesSet();
BrokerService answer = factory.getBroker();
return answer;
}
Aggregations