Package org.apache.axis2.engine

Examples of org.apache.axis2.engine.ServiceLifeCycle


        count++;
    }

    public static void startBroker() throws Exception {

        ServiceLifeCycle brokerLifeCycle = new BrokerServiceLifeCycle();

        final String configFileParam = "configuration.file.name";
        final String configFileValue = "msgBroker.properties";

        AxisService notificationService = getNotificationService();
        notificationService.addParameter(configFileParam, configFileValue);
        notificationService.setServiceLifeCycle(brokerLifeCycle);
        TestUtilServer.deployService(notificationService);
        brokerLifeCycle.startUp(TestUtilServer.getConfigurationContext(), notificationService);

        AxisService eventingService = getEventingService();
        eventingService.addParameter(configFileParam, configFileValue);
        eventingService.setServiceLifeCycle(brokerLifeCycle);
        TestUtilServer.deployService(eventingService);
        brokerLifeCycle.startUp(TestUtilServer.getConfigurationContext(), eventingService);

    }
View Full Code Here


        if (className != null) {
            try {
                ClassLoader loader = service.getClassLoader();
                Class serviceLifeCycleClassImpl = Loader.loadClass(loader,
            className);
                ServiceLifeCycle serviceLifeCycle =
                        (ServiceLifeCycle) serviceLifeCycleClassImpl.newInstance();
        service.setServiceLifeCycle(serviceLifeCycle);
      } catch (Exception e) {
        throw new DeploymentException(e.getMessage(), e);
      }
View Full Code Here

        count++;
    }

    public static void startBroker() throws Exception {

        ServiceLifeCycle brokerLifeCycle = new BrokerServiceLifeCycle();

        final String configFileParam = "configuration.file.name";
        final String configFileValue = "conf/msgBroker.properties";

        AxisService notificationService = getNotificationService();
        notificationService.addParameter(configFileParam, configFileValue);
        notificationService.setServiceLifeCycle(brokerLifeCycle);
        TestUtilServer.deployService(notificationService);
        brokerLifeCycle.startUp(TestUtilServer.getConfigurationContext(), notificationService);

        AxisService eventingService = getEventingService();
        eventingService.addParameter(configFileParam, configFileValue);
        eventingService.setServiceLifeCycle(brokerLifeCycle);
        TestUtilServer.deployService(eventingService);
        brokerLifeCycle.startUp(TestUtilServer.getConfigurationContext(), eventingService);

    }
View Full Code Here

    private void loadServiceLifeCycleClass(String className) throws DeploymentException {
        if (className != null) {
            try {
                ClassLoader loader = service.getClassLoader();
                Class serviceLifeCycleClassImpl = Loader.loadClass(loader, className);
                ServiceLifeCycle serviceLifeCycle = (ServiceLifeCycle) serviceLifeCycleClassImpl.newInstance();
                serviceLifeCycle.startUp(configCtx, service);
                service.setServiceLifeCycle(
                        serviceLifeCycle);
            } catch (Exception e) {
                throw new DeploymentException(e.getMessage(), e);
            }
View Full Code Here

    private void loadServiceLifeCycleClass(String className) throws DeploymentException {
        if (className != null) {
            try {
                ClassLoader loader = service.getClassLoader();
                Class serviceLifeCycleClassImpl = Loader.loadClass(loader, className);
                ServiceLifeCycle serviceLifeCycle =
                        (ServiceLifeCycle) serviceLifeCycleClassImpl.newInstance();
                serviceLifeCycle.startUp(configCtx, service);
                service.setServiceLifeCycle(
                        serviceLifeCycle);
            } catch (Exception e) {
                throw new DeploymentException(e.getMessage(), e);
            }
View Full Code Here

        count++;
    }

    public static void startBroker() throws Exception {

        ServiceLifeCycle brokerLifeCycle = new BrokerServiceLifeCycle();

        final String configFileParam = "configuration.file.name";
        final String configFileValue = "airavata-server.properties";

        AxisService notificationService = getNotificationService();
        notificationService.addParameter(configFileParam, configFileValue);
        notificationService.setServiceLifeCycle(brokerLifeCycle);
        TestUtilServer.deployService(notificationService);
        brokerLifeCycle.startUp(TestUtilServer.getConfigurationContext(), notificationService);

        AxisService eventingService = getEventingService();
        eventingService.addParameter(configFileParam, configFileValue);
        eventingService.setServiceLifeCycle(brokerLifeCycle);
        TestUtilServer.deployService(eventingService);
        brokerLifeCycle.startUp(TestUtilServer.getConfigurationContext(), eventingService);

    }
View Full Code Here

    if (className != null) {
      try {
        ClassLoader loader = service.getClassLoader();
        Class serviceLifeCycleClassImpl = Loader.loadClass(loader,
            className);
        ServiceLifeCycle serviceLifeCycle = (ServiceLifeCycle) serviceLifeCycleClassImpl
            .newInstance();
        serviceLifeCycle.startUp(configCtx, service);
        service.setServiceLifeCycle(serviceLifeCycle);
      } catch (Exception e) {
        throw new DeploymentException(e.getMessage(), e);
      }
    }
View Full Code Here

        }
        if(axisConfiguration!=null){
            for (Iterator services = axisConfiguration.getServices().values().iterator();
            services.hasNext();) {
                AxisService axisService = (AxisService) services.next();
                ServiceLifeCycle serviceLifeCycle = axisService.getServiceLifeCycle();
                if (serviceLifeCycle != null) {
                    try {
                        serviceLifeCycle.shutDown(this, axisService);
                    } catch (Exception e) {
                        log.warn("Could not shutdown service " + axisService.getName(), e);
                    }
                }
            }
View Full Code Here

        if (className != null) {
            try {
                ClassLoader loader = service.getClassLoader();
                Class serviceLifeCycleClassImpl = Loader.loadClass(loader,
            className);
                ServiceLifeCycle serviceLifeCycle =
                        (ServiceLifeCycle) serviceLifeCycleClassImpl.newInstance();
        service.setServiceLifeCycle(serviceLifeCycle);
      } catch (Exception e) {
        throw new DeploymentException(e.getMessage(), e);
      }
View Full Code Here

    if (className != null) {
      try {
        ClassLoader loader = service.getClassLoader();
        Class serviceLifeCycleClassImpl = Loader.loadClass(loader,
            className);
        ServiceLifeCycle serviceLifeCycle = (ServiceLifeCycle) serviceLifeCycleClassImpl
            .newInstance();
        serviceLifeCycle.startUp(configCtx, service);
        service.setServiceLifeCycle(serviceLifeCycle);
      } catch (Exception e) {
        throw new DeploymentException(e.getMessage(), e);
      }
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.engine.ServiceLifeCycle

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.