Package org.apache.axis2.description

Examples of org.apache.axis2.description.AxisOperation.engageModule()


    opts.setTimeOutInMilliSeconds(getTimeoutInMilliSeconds());

    ServiceClient client = new ServiceClient();
    try {
      client
          .engageModule(MsgBoxCommonConstants.AXIS_MODULE_NAME_ADDRESSING);
      if (logger.isDebugEnabled())
        logger.debug("Addressing module engaged");
    } catch (AxisFault e) {
      if (logger.isDebugEnabled())
View Full Code Here


                    throw new ModuleMgtException(ModuleMgtException.WARNING, ModuleMgtMessageKeys.RAHAS_RAMPART_NOT_FOUND);
                }
                if (!operation.isEngaged(rampartModule)) {
                    pf.getOperationPM().engageModuleForOperation(rampartModule, operation);
                    operation.disengageModule(rampartModule);
                    operation.engageModule(rampartModule);
                }
            }

            pf.getOperationPM().engageModuleForOperation(module, operation);
            operation.disengageModule(module);
View Full Code Here

                }
            }

            pf.getOperationPM().engageModuleForOperation(module, operation);
            operation.disengageModule(module);
            operation.engageModule(module);

        } catch (Exception e) {
            String msg = "Error occured while engaging the module " + moduleId + " to "
                    + operationName;
            log.error(msg, e);
View Full Code Here

                for (Object module1 : modules) {
                    String moduleName = (String) module1;
                    AxisModule module = axisConfig.getModule(moduleName);

                    if (module != null) {
                        opDesc.engageModule(module);
                    } else {
                        throw new DeploymentException(
                                Messages.getMessage(
                                        DeploymentErrorMsgs.BAD_MODULE_FROM_OPERATION,
                                        opDesc.getName().getLocalPart(),
View Full Code Here

            log.error("Error occured while saving the builtPolicy in registry", e);
            throw new ThrottleComponentException("errorSavingPolicy");
        }

        //engage the module at operation
        operation.engageModule(module);
        return false;
    }

    /**
     * Disengages throttling from an operation
View Full Code Here

                                RegistryResources.Associations.ENGAGED_MODULES);
                        for (Association association : associations) {
                            AxisModule axisModule = getExistingAxisModule(association.getDestinationPath());
                            if (!isGloballyEngaged(association.getDestinationPath())) {
                                if (!axisService.isEngaged(axisModule)) {
                                    axisOperation.engageModule(axisModule);
                                }
                            }
                        }
                        // Handle operation parameters
                        loadParameters(axisOperation, operationPath);
View Full Code Here

        AxisOperation operation = service.getOperation(opName);
        assertNotNull(operation);
        userPhase = (Phase) operation.getRemainingPhasesInFlow().get(1);
        assertNotNull(userPhase);
        assertEquals(0, userPhase.getHandlerCount());
        operation.engageModule(module);
        assertEquals(2, phase.getHandlerCount());
        assertEquals(1, userPhase.getHandlerCount());
        operation.disengageModule(module);
        assertEquals(0, phase.getHandlerCount());
        assertEquals(0, userPhase.getHandlerCount());
View Full Code Here

        if ((serviceName != null) && (moduleName != null) && (operationName != null)) {
            try {
                AxisOperation od = configContext.getAxisConfiguration().getService(
                        serviceName).getOperation(new QName(operationName));

                od.engageModule(
                        configContext.getAxisConfiguration().getModule(moduleName));
                req.getSession().setAttribute(Constants.ENGAGE_STATUS,
                                              moduleName
                                                      +
                                                      " module engaged to the operation successfully");
View Full Code Here

                for (int i = 0; i < modules.size(); i++) {
                    String moduleName = (String) modules.get(i);
                    AxisModule module = axisConfig.getModule(moduleName);

                    if (module != null) {
                        opDesc.engageModule(module);
                    } else {
                        throw new DeploymentException(
                                Messages.getMessage(
                                        DeploymentErrorMsgs.BAD_MODULE_FROM_OPERATION,
                                        opDesc.getName().getLocalPart(),
View Full Code Here

                for (Object module1 : modules) {
                    String moduleName = (String) module1;
                    AxisModule module = axisConfig.getModule(moduleName);

                    if (module != null) {
                        opDesc.engageModule(module);
                    } else {
                        throw new DeploymentException(
                                Messages.getMessage(
                                        DeploymentErrorMsgs.BAD_MODULE_FROM_OPERATION,
                                        opDesc.getName().getLocalPart(),
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.