Package org.apache.axis2.client

Examples of org.apache.axis2.client.ServiceClient.disengageModule()


        assertNotNull(userPhase);
        assertEquals(0, userPhase.getHandlerCount());
        service.engageModule(module, er);
        assertEquals(predisptah.getHandlerCount(), 2);
        assertEquals(1, userPhase.getHandlerCount());
        operation.disengageModule(module);
        assertEquals(predisptah.getHandlerCount(), 2);
        assertEquals(0, userPhase.getHandlerCount());
    }

    public void testOperationEnageOperationDisengage() throws AxisFault {
View Full Code Here


        assertNotNull(userPhase);
        assertEquals(0, userPhase.getHandlerCount());
        operation.engageModule(module, er);
        assertEquals(predisptah.getHandlerCount(), 2);
        assertEquals(1, userPhase.getHandlerCount());
        operation.disengageModule(module);
        assertEquals(predisptah.getHandlerCount(), 0);
        assertEquals(0, userPhase.getHandlerCount());
    }

View Full Code Here

                    new String[scenario.getModules().size()]);

            // disengage modules
            for (String moduleName : moduleNames) {
                AxisModule module = service.getAxisConfiguration().getModule(moduleName);
                service.disengageModule(module);

                String modPath = RegistryResources.MODULES + module.getName() + "/" + module.getVersion();
                registry.removeAssociation(servicePath, modPath,
                        RegistryResources.Associations.ENGAGED_MODULES);
            }
View Full Code Here

                if (rampartModule == null) {
                    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);
View Full Code Here

                    service.engageModule(rampartModule);
                }
            }

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

            return true;

        } catch (Exception e) {
View Full Code Here

                throw new ModuleMgtException(ModuleMgtException.WARNING, ModuleMgtMessageKeys.SEC_SCENARIO_ENGAGED);
            }

            try {
                pf.getServicePM().disengageModuleForService(module, service);
                service.disengageModule(module);
            } catch (Exception e) {
                String msg = "Error occured while disengaging the module " + moduleId
                        + " from service " + serviceName;
                log.error(msg, e);
                throw new ModuleMgtException(e, ModuleMgtException.ERROR, ModuleMgtMessageKeys.ERROR_DISENGAGE);
View Full Code Here

                String[] values = moduleResourcePath.split("/");
                String moduleName = values[values.length - 2];
                String moduleVersion = values[values.length - 1];
                // disengage at Axis
                axisService.disengageModule(axisService.getAxisConfiguration().getModule(
                        moduleName, moduleVersion));
            }

        }
    }
View Full Code Here

        getConfigSystemRegistry().addAssociation(RegistryResources.Associations.ENGAGED_MODULES,
                                                 serviceResourcePath, moduleResourcePath);

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

    }

    private void removeAssertionsByNamespace(Policy policy, String namespace) {
View Full Code Here

                // disengage at registry
                registry.removeAssociation(servicePath, getModuleResourcePath(module),
                        RegistryResources.Associations.ENGAGED_MODULES);

                // disengage at Axis
                axisService.disengageModule(module);

            } catch (RegistryException e) {
                log.error("Error occured while removing assertion from registry", e);
                throw new ThrottleComponentException("errorDisablingAtRegistry");
            }
View Full Code Here

        config.engageModule(module.getName());
        assertEquals(2, phase.getHandlerCount());
        assertEquals(1, userPhase.getHandlerCount());

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