receiverContainer.setAutoEnlistInTransaction(true);
    protected void setUp() throws Exception {        super.setUp();                System.setProperty(Context.INITIAL_CONTEXT_FACTORY, SpringInitialContextFactory.class.getName());        System.setProperty(Context.PROVIDER_URL, "jndi.xml");        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");        senderContainer.setTransactionManager(tm);        senderContainer.setEmbedded(true);        senderContainer.setName("senderContainer");        senderContainer.setFlows(new Flow[] { senderFlow} );        senderContainer.setMonitorInstallationDirectory(false);        senderContainer.setAutoEnlistInTransaction(true);        senderContainer.init();        senderContainer.start();                        JCAFlow receiverFlow = new JCAFlow();        receiverFlow.setJmsURL("tcp://localhost:61616");        receiverContainer.setTransactionManager(tm);        receiverContainer.setEmbedded(true);        receiverContainer.setName("receiverContainer");        receiverContainer.setFlows(new Flow[] { receiverFlow} );        receiverContainer.setMonitorInstallationDirectory(false);        receiverContainer.init();        receiverContainer.start();    }