tcmfb.setTransactionManager(etm);
tcmfb.afterPropertiesSet();
TransactionContextManager tcm = (TransactionContextManager) tcmfb.getObject();
GeronimoTransactionManagerFactoryBean gtmfb = new GeronimoTransactionManagerFactoryBean();
gtmfb.setTransactionContextManager(tcm);
gtmfb.afterPropertiesSet();
TransactionManager tm = (TransactionManager) gtmfb.getObject();
tt = new TransactionTemplate(new JtaTransactionManager((UserTransaction) tm));
BrokerFactoryBean bfb = new BrokerFactoryBean(new ClassPathResource("org/apache/servicemix/jbi/nmr/flow/jca/broker.xml"));
bfb.afterPropertiesSet();