Examples of stop()


Examples of org.apache.openejb.async.AsynchronousPool.stop()

            }

            // stop this executor only now since @PreDestroy can trigger some stop events
            final AsynchronousPool pool = appContext.get(AsynchronousPool.class);
            if (pool != null) {
                pool.stop();
            }

            for (final CommonInfoObject jar : listCommonInfoObjectsForAppInfo(appInfo)) {
                try {
                    globalContext.unbind(VALIDATOR_FACTORY_NAMING_CONTEXT + jar.uniqueId);
View Full Code Here

Examples of org.apache.openejb.client.EJBResponse.stop()

        try {
            res.start(EJBResponse.Time.DESERIALIZATION);

            req.getBody().readExternal(in);

            res.stop(EJBResponse.Time.DESERIALIZATION);
        } catch (Throwable t) {
            replyWithFatalError(out, t, "Error caught during request processing");
            return;
        }
View Full Code Here

Examples of org.apache.openejb.config.RemoteServer.stop()

        final RemoteServer server = new RemoteServer(getConnectAttempts(), false);
        if (!getNoShutdownHook()) {
            Runtime.getRuntime().addShutdownHook(new Thread() {
                @Override public void run() {
                    server.stop();
                }
            });
        }

        server.start(strings, getCmd(), false);
View Full Code Here

Examples of org.apache.openejb.core.timer.EjbTimerService.stop()

            ThreadContext.exit(old);
        }
        instanceManager.undeploy(deploymentInfo);
        EjbTimerService timerService = deploymentInfo.getEjbTimerService();
        if (timerService != null) {
            timerService.stop();
        }

        synchronized (this) {
            String id = (String) deploymentInfo.getDeploymentID();
            deploymentInfo.setContainer(null);
View Full Code Here

Examples of org.apache.openejb.server.Server.stop()

                case RequestMethodConstants.STOP_REQUEST_quit:
                case RequestMethodConstants.STOP_REQUEST_Stop:
                case RequestMethodConstants.STOP_REQUEST_stop:
                    Server server = SystemInstance.get().getComponent(Server.class);
                    if (null != server) {
            server.stop();
          }
                    break;
                default:
                    //If this turns up in the logs then it is time to take action
                    Logger.getInstance(LogCategory.OPENEJB_SERVER, AdminDaemon.class).warning("Invalid Server Socket request: " + requestType);
View Full Code Here

Examples of org.apache.openejb.server.ServerService.stop()

        blue.stop();

        assertEquals(Host.GREEN, target.getHost());

        green.stop();

        try {
            target.getHost();
            fail("EJBException should have been thrown");
        } catch (final EJBException e) {
View Full Code Here

Examples of org.apache.openejb.server.ServiceDaemon.stop()

            }

        } catch (NamingException e) {
            throw e;
        } finally {
            serviceDaemon.stop();
            OpenEJB.destroy();
        }

    }
}
View Full Code Here

Examples of org.apache.openejb.server.SimpleServiceManager.stop()

        });
        serviceManager.init();
        serviceManager.start(false);
        waitForDerby(port);
        assertConnection(port);
        serviceManager.stop();
    }
}
View Full Code Here

Examples of org.apache.openejb.server.cxf.rs.CxfRSService.stop()

                assertNotNull(Reflections.get(afterLoader, "parent"));
            }

            server.undeploy(new AssemblerBeforeApplicationDestroyed(info, context));
        } finally {
            server.stop();
        }
    }
}
View Full Code Here

Examples of org.apache.openejb.util.PerformanceTimer.stop()

            final long begin = System.currentTimeMillis();
            DeploymentsResolver.processUrls(urls, classLoader, requireDescriptors, base, jarList);
            final long end = System.currentTimeMillis();
            final long time = end - begin;

            timer.stop(System.out);

            final UrlSet unchecked = new UrlSet();
//            if (!filterDescriptors){
//                unchecked = prefiltered.exclude(urlSet);
//                if (filterSystemApps){
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.