System.setProperty("basedir", file.getAbsolutePath());
}
failureCount = super.messageCount / 2;
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();