Package org.apache.activemq.xbean

Examples of org.apache.activemq.xbean.BrokerFactoryBean.afterPropertiesSet()


        return broker;
    }

    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;
View Full Code Here


        return createBroker(new ClassPathResource(resource));
    }

    protected BrokerService createBroker(Resource resource) throws Exception {
        BrokerFactoryBean factory = new BrokerFactoryBean(resource);
        factory.afterPropertiesSet();

        BrokerService broker = factory.getBroker();

        assertTrue("Should have a broker!", broker != null);
View Full Code Here

*/
public class KahaLoadTester extends LoadTester  {

    protected BrokerService createBroker() throws Exception {
        BrokerFactoryBean brokerFactory=new BrokerFactoryBean(new ClassPathResource("org/apache/activemq/broker/store/kahabroker.xml"));
        brokerFactory.afterPropertiesSet();
        BrokerService broker =  brokerFactory.getBroker();
        broker.setDeleteAllMessagesOnStartup(true);
        return broker;
    }
   
View Full Code Here

    }

    protected void doSetUp() throws Exception{
        Resource resource=new ClassPathResource(getRemoteBrokerURI());
        BrokerFactoryBean factory=new BrokerFactoryBean(resource);
        factory.afterPropertiesSet();
        remoteBroker=factory.getBroker();
        remoteBroker.start();
       
        resource=new ClassPathResource(getLocalBrokerURI());
        factory=new BrokerFactoryBean(resource);
View Full Code Here

        remoteBroker=factory.getBroker();
        remoteBroker.start();
       
        resource=new ClassPathResource(getLocalBrokerURI());
        factory=new BrokerFactoryBean(resource);
        factory.afterPropertiesSet();
        localBroker=factory.getBroker();
       
        localBroker.start();
       
        URI localURI=localBroker.getVmConnectorURI();
View Full Code Here

public class MultipleTestsWithXBeanFactoryBeanTest extends MultipleTestsWithEmbeddedBrokerTest {

    protected BrokerService createBroker() throws Exception {
        BrokerFactoryBean factory = new BrokerFactoryBean();
        factory.setConfig(new ClassPathResource("org/apache/activemq/xbean/activemq2.xml"));
        factory.afterPropertiesSet();
        return factory.getBroker();
    }


}
View Full Code Here

public class IndividualDeadLetterViaXmlTest extends DeadLetterTest {


    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;
    }

    protected Destination createDlqDestination() {
View Full Code Here

    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();
View Full Code Here

        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();
    }
View Full Code Here

        return createBroker(new ClassPathResource(resource));
    }

    protected BrokerService createBroker(Resource resource) throws Exception {
        BrokerFactoryBean factory = new BrokerFactoryBean(resource);
        factory.afterPropertiesSet();

        BrokerService broker = factory.getBroker();

        //assertTrue("Should have a broker!", broker != null);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.