Package org.apache.geronimo.openejb.cdi

Examples of org.apache.geronimo.openejb.cdi.ThreadSingletonServiceAdapter


       
        // add our thread context listener
        GeronimoThreadContextListener.init();

        SystemInstance.get().setComponent(FinderFactory.class, new BundleFinderFactory());
        SystemInstance.get().setComponent(ThreadSingletonService.class, new ThreadSingletonServiceAdapter());
        //probably should be in openejb...
        ThreadContext.addThreadContextListener(new OWBContextThreadListener());

        // process all resource adapters
        processResourceAdapterWrappers(resourceAdapters);
View Full Code Here


        }
    }

    @Override
    public void doStart() throws Exception {
        ThreadSingletonServiceAdapter adapter = getThreadSingletonServiceAdapter();
        if (adapter != null) {
            adapter.getGeronimoSingletonService().setWebApplicationSingletonService(new WebApplicationNameBasedSingletonService());
        }
    }
View Full Code Here

        }
    }

    @Override
    public void doStop() throws Exception {
        ThreadSingletonServiceAdapter adapter = getThreadSingletonServiceAdapter();
        if (adapter != null) {
            adapter.getGeronimoSingletonService().setWebApplicationSingletonService(null);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.openejb.cdi.ThreadSingletonServiceAdapter

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.