BrokerService broker = new BrokerService();
KahaDBStore kaha = new KahaDBStore();
File directory = new File("target/activemq-data/kahadb");
IOHelper.deleteChildren(directory);
kaha.setDirectory(directory);
kaha.deleteAllMessages();
broker.setPersistenceAdapter(kaha);
return broker;
}
protected ConnectionFactory createConnectionFactory() {