Examples of AxisServiceGroup


Examples of org.apache.axis2.description.AxisServiceGroup

        PhaseResolver phaseResolver = new PhaseResolver(this);
        phaseResolver.disengageModuleFromGlobalChains(module);

        Iterator<AxisServiceGroup> serviceGroups = getServiceGroups();
        while (serviceGroups.hasNext()) {
            AxisServiceGroup axisServiceGroup = serviceGroups.next();
            axisServiceGroup.disengageModule(module);
        }
    }
View Full Code Here

Examples of org.apache.axis2.description.AxisServiceGroup

     * @throws AxisFault
     */
    public synchronized void removeService(String name) throws AxisFault {
        AxisService service = removeServiceReferences(name);
        if (service != null) {
            AxisServiceGroup serviceGroup = service.getAxisServiceGroup();
            serviceGroup.removeService(name);
            log.debug(Messages.getMessage("serviceremoved", name));
        }
    }
View Full Code Here

Examples of org.apache.axis2.description.AxisServiceGroup

          ServiceGroupContext serviceGroupContext = new ServiceGroupContext (
              configContext,referenceMessage.getAxisServiceGroup());
          newMessageContext.setServiceGroupContext(serviceGroupContext);
        }
      } else {
        AxisServiceGroup axisServiceGroup = new AxisServiceGroup(axisConfiguration);
        ServiceGroupContext serviceGroupContext = new ServiceGroupContext(configContext, axisServiceGroup);

        newMessageContext.setAxisServiceGroup(axisServiceGroup);
        newMessageContext.setServiceGroupContext(serviceGroupContext);
      }

      if (referenceMessage.getAxisService() != null) {
        newMessageContext.setAxisService(referenceMessage.getAxisService());
       
        if (referenceMessage.getServiceContext()!=null) {
          newMessageContext.setServiceContext(referenceMessage.getServiceContext());
          newMessageContext.setServiceContextID(referenceMessage.getServiceContextID());
        } else {
          ServiceContext serviceContext = new ServiceContext (referenceMessage.getAxisService(),newMessageContext.getServiceGroupContext());
          newMessageContext.setServiceContext(serviceContext);
        }
      } else {
        AxisService axisService = new AxisService("AnonymousRMService");
       
        AxisServiceGroup serviceGroup = newMessageContext.getAxisServiceGroup();
        axisService.setParent(serviceGroup);
        serviceGroup.addChild(axisService);
       
        ServiceContext serviceContext = new ServiceContext(axisService, newMessageContext.getServiceGroupContext());

        newMessageContext.setAxisService(axisService);
        newMessageContext.setServiceContext(serviceContext);
View Full Code Here

Examples of org.apache.axis2.description.AxisServiceGroup

          ServiceGroupContext serviceGroupContext = new ServiceGroupContext (
              configContext,referenceMessage.getAxisServiceGroup());
          newMessageContext.setServiceGroupContext(serviceGroupContext);
        }
      } else {
        AxisServiceGroup axisServiceGroup = new AxisServiceGroup(axisConfiguration);
        ServiceGroupContext serviceGroupContext = new ServiceGroupContext(configContext, axisServiceGroup);

        newMessageContext.setAxisServiceGroup(axisServiceGroup);
        newMessageContext.setServiceGroupContext(serviceGroupContext);
      }
View Full Code Here

Examples of org.apache.axis2.description.AxisServiceGroup

        AxisService axisService =
                supperTenantAxisConfiguration.getService(
                        MultitenantConstants.MULTITENANT_DISPATCHER_SERVICE);
        superTenantOutMessageContext.setAxisService(axisService);

        AxisServiceGroup axisServiceGroup =
                supperTenantAxisConfiguration.getServiceGroup(
                        MultitenantConstants.MULTITENANT_DISPATCHER_SERVICE);
        ServiceGroupContext serviceGroupContext =
                this.superTenantConfigurationContext.createServiceGroupContext(axisServiceGroup);
        ServiceContext serviceContext = serviceGroupContext.getServiceContext(axisService);
View Full Code Here

Examples of org.apache.axis2.description.AxisServiceGroup

        boolean status = false;
        if (serviceGroupsItr.hasNext()) {
            status = true;
            temp.append("<h2>" + "Deployed services" + "</h2>");
            while (serviceGroupsItr.hasNext()) {
                AxisServiceGroup axisServiceGroup = (AxisServiceGroup) serviceGroupsItr.next();
                if (!SystemFilter.isFilteredOutService(axisServiceGroup)) {
                    status = true;
                    for (Iterator serviceItr = axisServiceGroup.getServices();
                         serviceItr.hasNext();) {
                        AxisService axisService = (AxisService) serviceItr.next();
                        temp.append("<h3><a href=\"").append(axisService.getName()).append("?info\">").
                                append(axisService.getName()).append("</a></h3>");
                    }
View Full Code Here

Examples of org.apache.axis2.description.AxisServiceGroup

                    createConfigurationContextFromFileSystem(carbonHome + File.separator + "samples" +
                                                             File.separator + "axis2Server" + File.separator +
                                                             "repository", null);
            server = new SimpleHTTPServer(context, serverPort);
            String resourcePath = HTTPServerManager.class.getResource("/SimpleStockQuoteService.aar").getPath();
            AxisServiceGroup serviceGroup = DeploymentEngine.loadServiceGroup(new File(resourcePath), context);
            AxisConfiguration xConfig = context.getAxisConfiguration();
            xConfig.addServiceGroup(serviceGroup);
            server.start();

        } catch (AxisFault axisFault) {
View Full Code Here

Examples of org.apache.axis2.description.AxisServiceGroup

        return processProxy;
    }

    private AxisServiceGroup createServiceGroupForService(AxisService svc) throws AxisFault {
        AxisServiceGroup svcGroup = new AxisServiceGroup();
        svcGroup.setServiceGroupName(svc.getName());
        svcGroup.addService(svc);
        // Checking configured using files param is not a good solution. We must figure out a way to handle this
        // at Carbon persistence manager layer.
        if (svc.getParameter(CarbonConstants.PRESERVE_SERVICE_HISTORY_PARAM) != null &&
                svc.getParameter(BPELConstants.CONFIGURED_USING_BPEL_PKG_CONFIG_FILES) == null) {
            svcGroup.addParameter(new Parameter(CarbonConstants.PRESERVE_SERVICE_HISTORY_PARAM, "true"));
        }

        return svcGroup;
    }
View Full Code Here

Examples of org.apache.axis2.description.AxisServiceGroup

            // set the KEEP_SERVICE_HISTORY_PARAM to true in AxisService
            axisService.addParameter(CarbonConstants.KEEP_SERVICE_HISTORY_PARAM, "true");
            // set the KEEP_SERVICE_HISTORY_PARAM and PRESERVE_SERVICE_HISTORY_PARAM to
            //  true in AxisServiceGroup
            AxisServiceGroup axisServiceGroup = axisService.getAxisServiceGroup();
            axisServiceGroup.addParameter(CarbonConstants.KEEP_SERVICE_HISTORY_PARAM, "true");
            axisServiceGroup.addParameter(CarbonConstants.PRESERVE_SERVICE_HISTORY_PARAM, "true");

            RuleServiceAdminHandler adminHandler = getRuleServiceAdminHandler(fileExtension);
            adminHandler.saveRuleService(getAxisConfig(), axisService, serviceDescription);
        } catch (AxisFault axisFault) {
            throw new RuleServiceManagementException("Error while accessing " +
View Full Code Here

Examples of org.apache.axis2.description.AxisServiceGroup

        if (operation == null) {
            log.error("Operation " + serviceName + "cannnot be found!");
            throw new ModuleMgtException(ModuleMgtException.ERROR, ModuleMgtMessageKeys.OPERATION_NOT_FOUND);
        }

        AxisServiceGroup serviceGroup = service.getAxisServiceGroup();
        ModuleMetaData[] modules = listModules();

        for (ModuleMetaData module : modules) {
            String moduleId = module.getModuleId();
            module.setEngagedServiceGroupLevel(serviceGroup.isEngaged(moduleId));
            module.setEngagedServiceLevel(service.isEngaged(moduleId));
            module.setEngagedOperationLevel(operation.isEngaged(moduleId));
        }

        return modules;
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.