Package org.apache.geronimo.concurrent.test

Examples of org.apache.geronimo.concurrent.test.BasicTaskRunnable


        testContextMigration(true);
    }
   
    private void testContextMigration(boolean testEjbSecurity) throws Exception {
        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
        BasicTaskRunnable runnable = new BasicTaskRunnable(classLoader);
        runnable.setTestEjbSecurity(testEjbSecurity);
       
        Runnable task = (Runnable)contextService.createContextObject(runnable, new Class [] {Runnable.class});
        RunnableWrapper wrapper = new RunnableWrapper(task);       
        Thread t = new Thread(wrapper);       
        t.start();
View Full Code Here


        // since ee context is captured on jndi lookup for ManagedThreadFactory
        // lookup ThreadFactory here to get the right security context
        ManagedThreadFactory threadFactory = getThreadFactory();

        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
        BasicTaskRunnable runnable = new BasicTaskRunnable(classLoader);
        runnable.setTestEjbSecurity(testEjbSecurity);
        RunnableWrapper wrapper = new RunnableWrapper(runnable);
        Thread t = threadFactory.newThread(wrapper);
        t.start();
        t.join();
       
View Full Code Here

TOP

Related Classes of org.apache.geronimo.concurrent.test.BasicTaskRunnable

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.