Package org.apache.geronimo.openejb

Examples of org.apache.geronimo.openejb.EjbDeploymentIdAccessor


        manager.getServiceSpace().getServiceRegistry().getStartedService(NetworkConnectorTracker.NAME);
        modify().returnValue(localTracker);
       
        mockStartingDeployments = new ArrayList<EjbDeploymentIdAccessor>();
        String deploymentId = "deploymentId";
        EjbDeploymentIdAccessor idAccessor = newDeploymentIdAccessor(deploymentId);
        mockStartingDeployments.add(idAccessor);
        deployments.iterator();
        modify().returnValue(mockStartingDeployments.iterator());

        mockStartingConnectors = new ArrayList<NetworkConnector>();
View Full Code Here


       
        tracker.registerNetworkConnectorLocations(deploymentId, nodeName, Collections.singleton(new URI("ejbd://host:1")));
    }

    private EjbDeploymentIdAccessor newDeploymentIdAccessor(String deploymentId) {
        EjbDeploymentIdAccessor idAccessor = (EjbDeploymentIdAccessor) mock(EjbDeploymentIdAccessor.class,
            "EjbDeploymentIdAccessor" + deploymentId);
        idAccessor.getDeploymentId();
        modify().multiplicity(expect.from(0)).returnValue(deploymentId);
        return idAccessor;
    }
View Full Code Here

    protected abstract class ExecuteDeploymentEventTest {
        public void executeTest() throws Exception {
            recordStart();

            String deploymentId2 = "deploymentId2";
            EjbDeploymentIdAccessor idAccessor2 = newDeploymentIdAccessor(deploymentId2);

            trackerProxyFactory.getProxy();
            modify().returnValue(tracker);
            executeTrackerOperation(deploymentId2, Collections.singleton(new URI("ejbd://host:1")));
View Full Code Here

    }

    protected void registerListenerForDeploymentUpdates(ReferenceCollection deploymentIdAccessors) {
        deploymentIdAccessors.addReferenceCollectionListener(new ReferenceCollectionListener() {
            public void memberAdded(ReferenceCollectionEvent event) {
                EjbDeploymentIdAccessor idAccessor = (EjbDeploymentIdAccessor) event.getMember();
                String deploymentId = idAccessor.getDeploymentId();
                updateTracker(deploymentId);
            }

            public void memberRemoved(ReferenceCollectionEvent event) {
                EjbDeploymentIdAccessor idAccessor = (EjbDeploymentIdAccessor) event.getMember();
                String deploymentId = idAccessor.getDeploymentId();
                removeTracker(deploymentId);
            }
        });
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.openejb.EjbDeploymentIdAccessor

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.