Package org.apache.activemq.xbean

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


        super.topic = isTopic();
        BrokerFactoryBean brokerFactory = new BrokerFactoryBean(new ClassPathResource(getMasterXml()));
        brokerFactory.afterPropertiesSet();
        master = brokerFactory.getBroker();
        brokerFactory = new BrokerFactoryBean(new ClassPathResource(getSlaveXml()));
        brokerFactory.afterPropertiesSet();
        slave = brokerFactory.getBroker();
        master.start();
        slave.start();
        // wait for thing to connect
        Thread.sleep(1000);
View Full Code Here


    }

    protected BrokerService createBroker() throws Exception {
        Resource resource = new ClassPathResource("org/apache/activemq/perf/slowConsumerBroker.xml");
        BrokerFactoryBean factory = new BrokerFactoryBean(resource);
        factory.afterPropertiesSet();
        BrokerService broker = factory.getBroker();
        broker.start();
        return broker;
    }
View Full Code Here

        return false;
    }
   
    protected void createMaster() throws Exception {
    BrokerFactoryBean brokerFactory = new BrokerFactoryBean(new ClassPathResource(getMasterXml()));
    brokerFactory.afterPropertiesSet();
    master = brokerFactory.getBroker();
    master.start();
    }
   
    protected void createSlave() throws Exception {
View Full Code Here

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

    protected JBIContainer container;
  protected BrokerService broker;
   
    protected void setUp() throws Exception {
        BrokerFactoryBean bfb = new BrokerFactoryBean(new ClassPathResource("broker.xml"));
        bfb.afterPropertiesSet();
        broker = bfb.getBroker();
        broker.start();
        container = new JBIContainer();
        container.setMonitorInstallationDirectory(false);
        container.setUseMBeanServer(false);
View Full Code Here

        if (configFile == null) {
            configFile = "activemq.xml";
        }

        BrokerFactoryBean factory = new BrokerFactoryBean(new ClassPathResource(configFile));
        factory.afterPropertiesSet();

        return factory.getBroker();
    }

}
View Full Code Here

        return false;
    }
   
    protected void createMaster() throws Exception {
    BrokerFactoryBean brokerFactory = new BrokerFactoryBean(new ClassPathResource(getMasterXml()));
    brokerFactory.afterPropertiesSet();
    master = brokerFactory.getBroker();
    master.start();
    }
   
    protected void createSlave() throws Exception {
View Full Code Here

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

        super.tearDown();   
    }

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

    public void testQueueConfiguration() throws Exception {
View Full Code Here

    private static final Log LOG = LogFactory.getLog(IndividualDeadLetterViaXmlTest.class);


    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

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.