@ParamReference(name = "TransactionManager") TransactionManager transactionManager,
@ParamReference(name = "ApplicationJndi") ApplicationJndi applicationJndi,
@ParamSpecial(type = SpecialAttributeType.classLoader) ClassLoader classLoader,
@ParamSpecial(type = SpecialAttributeType.kernel) Kernel kernel,
@ParamSpecial(type = SpecialAttributeType.bundle) Bundle bundle) throws NamingException {
GeronimoUserTransaction userTransaction = new GeronimoUserTransaction(transactionManager);
Set<Context> contexts = new LinkedHashSet<Context>(3);
Context localCompContext = EnterpriseNamingContext.livenReferences(componentContext, userTransaction, kernel, classLoader, bundle, "comp/");
Context localModuleContext = EnterpriseNamingContext.livenReferences(moduleContext, null, kernel, classLoader, bundle, "module/");
contexts.add(localCompContext);
contexts.add(localModuleContext);