Package org.apache.axis2.description

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


                        if (wsRMOn) {
                            service.engageModule(axisCfg.getModule(
                                Constants.SANDESHA2_MODULE_NAME), axisCfg);
                        }
                        if (wsSecOn) {
                            service.engageModule(axisCfg.getModule(
                                Constants.RAMPART_MODULE_NAME), axisCfg);
                        }
                    }
                    // if WS-A is off, WS-Sec and WS-RM should be too
                }
View Full Code Here


                        .getModule(Constants.SANDESHA2_MODULE_NAME);

                if (am == null) {
                    throw new AxisFault("Sandesha 2 Module couldn't Find");
                }
                emptyRMEngagedService.engageModule(am, ac);
            }
        }


        AxisOperation ao = as.getOperation(EMPTY_OPERATION);
View Full Code Here

    private OperationClient getOperationClient(boolean isTwoWay, MessageContext msgCtx)
            throws AxisFault {
        AxisService anonymousService = AnonymousServiceFactory.getAnonymousService(serviceName,
                portName,
                axisConfig);
        anonymousService.engageModule(axisConfig.getModule("UEPModule"));
        anonymousService.getParent().addParameter(
                BPELConstants.HIDDEN_SERVICE_PARAM, "true");
        ServiceGroupContext sgc = new ServiceGroupContext(
                clientConfigCtx, (AxisServiceGroup) anonymousService.getParent());
        ServiceContext serviceCtx = sgc.getServiceContext(anonymousService);
View Full Code Here

                    throw new ModuleMgtException(ModuleMgtException.ERROR, ModuleMgtMessageKeys.RAHAS_RAMPART_NOT_FOUND);
                }
                if (!service.isEngaged(rampartModule)) {
                    pf.getServicePM().engageModuleForService(rampartModule, service);
                    service.disengageModule(rampartModule);
                    service.engageModule(rampartModule);
                }
            }

            pf.getServicePM().engageModuleForService(module, service);
            service.disengageModule(module);
View Full Code Here

                }
            }

            pf.getServicePM().engageModuleForService(module, service);
            service.disengageModule(module);
            service.engageModule(module);

            return true;

        } catch (Exception e) {
            String msg = "Error occured while engaging the module " + module;
View Full Code Here

                                                 serviceResourcePath, moduleResourcePath);

        // engage at axis2
        AxisModule module = axisService.getAxisConfiguration().getModule(moduleName);
        axisService.disengageModule(module);
        axisService.engageModule(module);

    }

    private void removeAssertionsByNamespace(Policy policy, String namespace) {
        List lst = policy.getAssertions();
View Full Code Here

                                    DeploymentErrorMsgs.BAD_MODULE_FROM_SERVICE,
                                    axisService.getName(),
                                    ((QName) aList).getLocalPart()));
                }

                axisService.engageModule(module);
            }

            for (Iterator iterator = axisService.getOperations(); iterator.hasNext();) {
                AxisOperation opDesc = (AxisOperation) iterator.next();
                ArrayList modules = opDesc.getModuleRefs();
View Full Code Here

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

        //engage the module only if it is not already engaged
        axisService.engageModule(module);
    }

    /**
     * Engages throttling globally.
     *
 
View Full Code Here

        Version v = new Version("1.0");
        am.setVersion(v);
        pf.getServiceGroupPM().handleNewServiceGroupAddition(asvGroup);
        pf.getServicePM().handleNewServiceAddition(asv);
        pf.getModulePM().handleNewModuleAddition(am, "Module2", "1.0");
        asv.engageModule(am);
        pf.getServicePM().engageModuleForService(am, asv);

        String servicePath = RegistryResources.SERVICE_GROUPS + asv.getAxisServiceGroup()
                .getServiceGroupName()
                + RegistryResources.SERVICES + asv.getName();
View Full Code Here

        assertNotNull(operation);
        userPhase = (Phase) operation.getRemainingPhasesInFlow().get(1);
        assertNotNull(userPhase);
        assertEquals(0, userPhase.getHandlerCount());

        service.engageModule(module);
        assertEquals(2, predisptah.getHandlerCount());
        assertEquals(1, userPhase.getHandlerCount());

        service.disengageModule(module);
        assertEquals(0, predisptah.getHandlerCount());
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.