Package org.apache.openejb.core.stateful

Examples of org.apache.openejb.core.stateful.Instance


        startVerification();

        manager.addSessionManager(deploymentId, sessionManager);

        Instance instance = new Instance(deploymentInfo, primaryKey, new Object(), null, (Map<EntityManagerFactory, EntityManager>) null);
        manager.add(primaryKey, instance);
    }
View Full Code Here


//    }

    private FutureTask<Instance> newBeanEntryTask(final VMID primaryKey, Session session) {
        final FutureTask<Instance> newBeanEntryTask = new FutureTask<Instance>(new Callable<Instance>() {
            public Instance call() throws Exception {
                Instance instance = new Instance(deploymentInfo, primaryKey, new Object(), null, (Map<EntityManagerFactory, EntityManager>) null);
                manager.add(primaryKey, instance);
                return instance;
            }
        });
        session.getState(WadiCache.SESSION_KEY_ENTRY);
View Full Code Here

    protected WadiInstance getWadiInstance(Session session) {
        if (session == null) {
            throw new IllegalArgumentException("session is required");
        }
        Instance instance = (Instance) session.getState(SESSION_KEY_ENTRY);
        if (instance == null) {
            return null;
        }
        return new WadiInstance(instance, session);
    }
View Full Code Here

    public void testNewBeanEntryForUnknownDeploymentThrowsISE() throws Exception {
        startVerification();

        try {
            VMID primaryKey = new VMID();
            Instance instance = new Instance(deploymentInfo, primaryKey, new Object(), null, (Map<EntityManagerFactory, EntityManager>) null);
            manager.add(primaryKey, instance);
            fail();
        } catch (IllegalStateException e) {
        }
    }
View Full Code Here

    public void testNewBeanEntryForUnknownDeploymentThrowsISE() throws Exception {
        startVerification();

        try {
            VMID primaryKey = new VMID();
            Instance instance = new Instance(deploymentInfo, primaryKey, new Object(), null, (Map<EntityManagerFactory, JtaEntityManagerRegistry.EntityManagerTracker>) null);
            manager.add(primaryKey, instance);
            fail();
        } catch (IllegalStateException e) {
        }
    }
View Full Code Here

        startVerification();

        manager.addSessionManager(deploymentId, sessionManager);

        Instance instance = new Instance(deploymentInfo, primaryKey, new Object(), null, (Map<EntityManagerFactory, JtaEntityManagerRegistry.EntityManagerTracker>) null);
        manager.add(primaryKey, instance);
    }
View Full Code Here

//    }

    private FutureTask<Instance> newBeanEntryTask(final VMID primaryKey, Session session) {
        final FutureTask<Instance> newBeanEntryTask = new FutureTask<Instance>(new Callable<Instance>() {
            public Instance call() throws Exception {
                Instance instance = new Instance(deploymentInfo, primaryKey, new Object(), null, (Map<EntityManagerFactory, JtaEntityManagerRegistry.EntityManagerTracker>) null);
                manager.add(primaryKey, instance);
                return instance;
            }
        });
        session.getState(WadiCache.SESSION_KEY_ENTRY);
View Full Code Here

    protected WadiInstance getWadiInstance(Session session) {
        if (session == null) {
            throw new IllegalArgumentException("session is required");
        }
        Instance instance = (Instance) session.getState(SESSION_KEY_ENTRY);
        if (instance == null) {
            return null;
        }
        return new WadiInstance(instance, session);
    }
View Full Code Here

    public void testNewBeanEntryForUnknownDeploymentThrowsISE() throws Exception {
        startVerification();

        try {
            VMID primaryKey = new VMID();
            Instance instance = new Instance(deploymentInfo, primaryKey, new Object(), null, (Map<EntityManagerFactory, EntityManager>) null);
            manager.add(primaryKey, instance);
            fail();
        } catch (IllegalStateException e) {
        }
    }
View Full Code Here

        startVerification();

        manager.addSessionManager(deploymentId, sessionManager);

        Instance instance = new Instance(deploymentInfo, primaryKey, new Object(), null, (Map<EntityManagerFactory, EntityManager>) null);
        manager.add(primaryKey, instance);
    }
View Full Code Here

TOP

Related Classes of org.apache.openejb.core.stateful.Instance

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.