Package org.apache.geronimo.transaction

Examples of org.apache.geronimo.transaction.GeronimoUserTransaction


                     throws InstantiationException, IllegalAccessException, ClassNotFoundException {

        if (componentContext != null) {
            componentContext.put("comp/env/WebServiceContext", new WebServiceContextReference());

            GeronimoUserTransaction userTransaction = new GeronimoUserTransaction(transactionManager);
            try {
                this.context = EnterpriseNamingContext.livenReferences(componentContext, userTransaction, kernel, classLoader, bundle, "comp/");
            } catch (NamingException e) {
                LOG.warn("Failed to create naming context", e);
            }
View Full Code Here


        if (componentContext != null) {

            // The name should match WebServiceContextAnnotationHelper.RELATIVE_JNDI_NAME
            componentContext.put("env/WebServiceContext", new WebServiceContextReference());

            GeronimoUserTransaction userTransaction = new GeronimoUserTransaction(transactionManager);
            try {
                Context localContext = EnterpriseNamingContext.livenReferences(componentContext, userTransaction, kernel, classLoader, bundle, "comp/");
                Set<Context> contexts = new LinkedHashSet<Context>(3);
                contexts.add(localContext);
                context = EnterpriseNamingContext.createEnterpriseNamingContext(contexts);
View Full Code Here

        }

        ServletHandler servletHandler = new ServletHandler();

        Context componentContext = contextSource.getContext();
        UserTransaction userTransaction = new GeronimoUserTransaction(transactionManager);
        Map<ServletContainerInitializer, Set<Class<?>>> servletContainerInitializerMap = new LinkedHashMap<ServletContainerInitializer, Set<Class<?>>>();
        //Set ServletContainerInitializer
        Map<String, Set<String>> servletContainerInitializerClassNamesMap = (Map<String, Set<String>>) deploymentAttributes.get(WebApplicationConstants.SERVLET_CONTAINER_INITIALIZERS);
        if (servletContainerInitializerClassNamesMap != null) {
            for (Map.Entry<String, Set<String>> entry : servletContainerInitializerClassNamesMap.entrySet()) {
View Full Code Here

        this.virtualServer = virtualServer;
        this.securityHolder = securityHolder;

        this.componentContext = contextSource.getContext();
        this.userTransaction = new GeronimoUserTransaction(transactionManager);

        this.unshareableResources = unshareableResources;
        this.applicationManagedSecurityResources = applicationManagedSecurityResources;
        this.trackedConnectionAssociator = trackedConnectionAssociator;
        this.applicationPolicyConfigurationManager = applicationPolicyConfigurationManager;
View Full Code Here

                            @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);
View Full Code Here

            Map componentContext,
            Kernel kernel,
            TransactionManager transactionManager)
            throws ClassNotFoundException, IllegalAccessException, InstantiationException {

        GeronimoUserTransaction userTransaction = new GeronimoUserTransaction(transactionManager);
        if (componentContext != null) {
            try {
                this.context = EnterpriseNamingContext.createEnterpriseNamingContext(componentContext,
                        userTransaction,
                        kernel,
View Full Code Here

                     throws InstantiationException, IllegalAccessException, ClassNotFoundException {

        if (componentContext != null) {
            componentContext.put("comp/env/WebServiceContext", new WebServiceContextReference());

            GeronimoUserTransaction userTransaction = new GeronimoUserTransaction(transactionManager);
            try {
                this.context = EnterpriseNamingContext.livenReferences(componentContext, userTransaction, kernel, classLoader, bundle, "comp/");
            } catch (NamingException e) {
                LOG.warn("Failed to create naming context", e);
            }
View Full Code Here

        }

        ServletHandler servletHandler = new ServletHandler();

        Context componentContext = contextSource.getContext();
        UserTransaction userTransaction = new GeronimoUserTransaction(transactionManager);
        Map<ServletContainerInitializer, Set<Class<?>>> servletContainerInitializerMap = new LinkedHashMap<ServletContainerInitializer, Set<Class<?>>>();
        //Set ServletContainerInitializer
        Map<String, Set<String>> servletContainerInitializerClassNamesMap = (Map<String, Set<String>>) deploymentAttributes.get(WebApplicationConstants.SERVLET_CONTAINER_INITIALIZERS);
        if (servletContainerInitializerClassNamesMap != null) {
            for (Map.Entry<String, Set<String>> entry : servletContainerInitializerClassNamesMap.entrySet()) {
View Full Code Here

        this.virtualServer = virtualServer;
        this.securityHolder = securityHolder;

        this.componentContext = contextSource.getContext();
        this.userTransaction = new GeronimoUserTransaction(transactionManager);

        this.unshareableResources = unshareableResources;
        this.applicationManagedSecurityResources = applicationManagedSecurityResources;
        this.trackedConnectionAssociator = trackedConnectionAssociator;
        this.applicationPolicyConfigurationManager = applicationPolicyConfigurationManager;
View Full Code Here

        if (componentContext != null) {
           
            // The name should match WebServiceContextAnnotationHelper.RELATIVE_JNDI_NAME
            componentContext.put("env/WebServiceContext", new WebServiceContextReference());
           
            GeronimoUserTransaction userTransaction = new GeronimoUserTransaction(transactionManager);
            try {
                context = EnterpriseNamingContext.createEnterpriseNamingContext(componentContext,
                                                                                userTransaction,
                                                                                kernel,
                                                                                classLoader);
View Full Code Here

TOP

Related Classes of org.apache.geronimo.transaction.GeronimoUserTransaction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.