TransactionManagerFactoryBean factory = new TransactionManagerFactoryBean();
factory.setTransactionLogDir("target/txlog");
tm = (GeronimoPlatformTransactionManager) factory.getObject();
broker = new BrokerService();
broker.setPersistenceAdapter(new MemoryPersistenceAdapter());
broker.addConnector("tcp://localhost:61616");
broker.start();
JCAFlow senderFlow = new JCAFlow();
senderFlow.setJmsURL("tcp://localhost:61616");