Package org.apache.openejb.spi

Examples of org.apache.openejb.spi.ApplicationServer


            * allow the application server to handle it.
            */
        } else {
            BaseEjbProxyHandler handler = (BaseEjbProxyHandler) ProxyManager.getInvocationHandler(theProxy);
            if (theProxy instanceof javax.ejb.EJBObject) {
                ApplicationServer applicationServer = ServerFederation.getApplicationServer();
                return applicationServer.getHandle(handler.getProxyInfo());
            } else if (theProxy instanceof javax.ejb.EJBHome) {
                ApplicationServer applicationServer = ServerFederation.getApplicationServer();
                return applicationServer.getHomeHandle(handler.getProxyInfo());
            } else {
                throw new OpenEJBRuntimeException("Invalid proxy type. Handles are only supported by EJBObject types in EJB 1.1");
            }
        }
    }
View Full Code Here


        jndiBuilder = new JndiBuilder(containerSystem.getJNDIContext());

        setConfiguration(new OpenEjbConfiguration());

        final ApplicationServer appServer = system.getComponent(ApplicationServer.class);
        if (appServer == null) {
            system.setComponent(ApplicationServer.class, new ServerFederation());
        }

        system.setComponent(EjbResolver.class, new EjbResolver(null, EjbResolver.Scope.GLOBAL));
View Full Code Here

        boolean offline = true;
        configurationFactory = new ConfigurationFactory(offline);
        assembler = new Assembler(openejbContext.newJndiFactory());

        // install application server
        ApplicationServer applicationServer = new ServerFederation();
        SystemInstance.get().setComponent(ApplicationServer.class, applicationServer);

        // install transaction manager
        transactionManager = getRawService(kernel, transactionManager);
        TransactionServiceInfo transactionServiceInfo = new TransactionServiceInfo();
View Full Code Here

        jndiBuilder = new JndiBuilder(containerSystem.getJNDIContext());

        setConfiguration(new OpenEjbConfiguration());

        final ApplicationServer appServer = system.getComponent(ApplicationServer.class);
        if (appServer == null) {
            system.setComponent(ApplicationServer.class, new org.apache.openejb.core.ServerFederation());
        }

        system.setComponent(EjbResolver.class, new EjbResolver(null, EjbResolver.Scope.GLOBAL));
View Full Code Here

            /*
            * If the proxy is serialized outside the core container system,
            * we allow the application server to handle it.
            */
        } else {
            final ApplicationServer applicationServer = ServerFederation.getApplicationServer();
            if (interfaceType.isBusiness()) {
                return applicationServer.getBusinessObject(this.getProxyInfo());
            } else {
                return applicationServer.getEJBObject(this.getProxyInfo());
            }
        }
    }
View Full Code Here

        boolean offline = true;
        configurationFactory = new ConfigurationFactory(offline);
        assembler = new Assembler();

        // install application server
        ApplicationServer applicationServer = new ServerFederation();
        SystemInstance.get().setComponent(ApplicationServer.class, applicationServer);

        // install transaction manager
        transactionManager = getRawService(kernel, transactionManager);
        TransactionServiceInfo transactionServiceInfo = new TransactionServiceInfo();
View Full Code Here

    private static CorbaApplicationServer corbaApplicationServer = new CorbaApplicationServer();

    public Object invoke(RMIStub stub, MethodDescriptor method, Object[] args) throws Throwable {
        // object types must bbe written in the context of the corba application server
        // which properly write replaces our objects for corba
        ApplicationServer oldApplicationServer = ServerFederation.getApplicationServer();

        ServerFederation.setApplicationServer(corbaApplicationServer);

        try {
            // let the super class handle everything.  We just need to wrap the context
View Full Code Here

        } else if (type == Short.TYPE) {
            out.write_short(((Short) object).shortValue());
        else {
            // object types must bbe written in the context of the corba application server
            // which properly write replaces our objects for corba
            ApplicationServer oldApplicationServer = ServerFederation.getApplicationServer();
            try {
                ServerFederation.setApplicationServer(corbaApplicationServer);

                // todo check if
                // copy the result to force replacement
View Full Code Here

            /*
            * If the proxy is serialized outside the core container system,
            * we allow the application server to handle it.
            */
        } else {
            ApplicationServer applicationServer = ServerFederation.getApplicationServer();
            return applicationServer.getEJBHome(this.getProxyInfo());
        }
    }
View Full Code Here

        jndiBuilder = new JndiBuilder(containerSystem.getJNDIContext());

        setConfiguration(new OpenEjbConfiguration());

        ApplicationServer appServer = system.getComponent(ApplicationServer.class);
        if (appServer == null) {
            system.setComponent(ApplicationServer.class, new org.apache.openejb.core.ServerFederation());
        }

        system.setComponent(EjbResolver.class, new EjbResolver(null, EjbResolver.Scope.GLOBAL));
View Full Code Here

TOP

Related Classes of org.apache.openejb.spi.ApplicationServer

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.