Examples of ThreadSingletonServiceAdapter


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

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

        }
    }

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

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

        }
    }

    @Override
    public void doStop() throws Exception {
        ThreadSingletonServiceAdapter adapter = getThreadSingletonServiceAdapter();
        if (adapter != null) {
            adapter.getGeronimoSingletonService().setWebApplicationSingletonService(null);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.