TransactionManagerFactoryBean tmcf = new TransactionManagerFactoryBean();
tmcf.afterPropertiesSet();
ExtendedTransactionManager etm = (ExtendedTransactionManager) tmcf.getObject();
TransactionContextManagerFactoryBean tcmfb = new TransactionContextManagerFactoryBean();
tcmfb.setTransactionManager(etm);
tcmfb.afterPropertiesSet();
TransactionContextManager tcm = (TransactionContextManager) tcmfb.getObject();
GeronimoTransactionManagerFactoryBean gtmfb = new GeronimoTransactionManagerFactoryBean();
gtmfb.setTransactionContextManager(tcm);
gtmfb.afterPropertiesSet();
TransactionManager tm = (TransactionManager) gtmfb.getObject();