Package org.apache.axis2.engine

Examples of org.apache.axis2.engine.AxisConfiguration.addParameter()


        Parameter synapseEnvParam = new Parameter(SYNAPSE_ENV, null);
        synapseEnvParam.setValue(new Axis2SynapseEnvironment(axisCfg));

        try {
            axisCfg.addParameter(synapseCtxParam);
            axisCfg.addParameter(synapseEnvParam);

        } catch (AxisFault e) {
            handleException(
                "Could not set parameters '" + SYNAPSE_CONFIG + "' and/or '" + SYNAPSE_ENV +
View Full Code Here


        Parameter synapseEnvParam = new Parameter(SYNAPSE_ENV, null);
        synapseEnvParam.setValue(new Axis2SynapseEnvironment(axisCfg));

        try {
            axisCfg.addParameter(synapseCtxParam);
            axisCfg.addParameter(synapseEnvParam);

        } catch (AxisFault e) {
            handleException(
                "Could not set parameters '" + SYNAPSE_CONFIG + "' and/or '" + SYNAPSE_ENV +
                "'to the Axis2 configuration : " + e.getMessage(), e);
View Full Code Here

            Parameter permenentStorage = axisConfiguration.getParameter(Sandesha2Constants.PERMANENT_STORAGE_MANAGER);
            if (permenentStorage != null) {
                axisConfiguration.removeParameter(permenentStorage);
            }
            // change the permenetent storage manager.
            axisConfiguration.addParameter(Sandesha2Constants.PERMANENT_STORAGE_MANAGER, persistentStorageManager);

        }

        // this parameter should load at the module init.
        Parameter storageManagerParameter = axisConfiguration.getParameter(Sandesha2Constants.STORAGE_MANAGER_PARAMETER);
View Full Code Here

        // this parameter should load at the module init.
        Parameter storageManagerParameter = axisConfiguration.getParameter(Sandesha2Constants.STORAGE_MANAGER_PARAMETER);
        if (storageManagerParameter != null) {
            axisConfiguration.removeParameter(storageManagerParameter);
        }
        axisConfiguration.addParameter(Sandesha2Constants.STORAGE_MANAGER_PARAMETER, parameters.getStorageManager());
        MessageContext.getCurrentMessageContext().getConfigurationContext().setProperty("storageManagerInstance", null);

        updateParameter(moduleResourcePath, Sandesha2Constants.STORAGE_MANAGER_PARAMETER,
                parameters.getStorageManager(), sandeshaModule);
View Full Code Here

        {
            AtomicInteger globalRequestCounter = new AtomicInteger(0);
            Parameter globalRequestCounterParam = new Parameter();
            globalRequestCounterParam.setName(StatisticsConstants.GLOBAL_REQUEST_COUNTER);
            globalRequestCounterParam.setValue(globalRequestCounter);
            axisConfig.addParameter(globalRequestCounterParam);
        }

        {
            AtomicInteger globalResponseCounter = new AtomicInteger(0);
            Parameter globalResponseCounterParam = new Parameter();
View Full Code Here

        {
            AtomicInteger globalResponseCounter = new AtomicInteger(0);
            Parameter globalResponseCounterParam = new Parameter();
            globalResponseCounterParam.setName(StatisticsConstants.GLOBAL_RESPONSE_COUNTER);
            globalResponseCounterParam.setValue(globalResponseCounter);
            axisConfig.addParameter(globalResponseCounterParam);
        }

        {
            AtomicInteger globalFaultCounter = new AtomicInteger(0);
            Parameter globalFaultCounterParam = new Parameter();
View Full Code Here

        {
            AtomicInteger globalFaultCounter = new AtomicInteger(0);
            Parameter globalFaultCounterParam = new Parameter();
            globalFaultCounterParam.setName(StatisticsConstants.GLOBAL_FAULT_COUNTER);
            globalFaultCounterParam.setValue(globalFaultCounter);
            axisConfig.addParameter(globalFaultCounterParam);
        }

        {
            ResponseTimeProcessor responseTimeProcessor = new ResponseTimeProcessor();
            Parameter responseTimeProcessorParam = new Parameter();
View Full Code Here

        {
            ResponseTimeProcessor responseTimeProcessor = new ResponseTimeProcessor();
            Parameter responseTimeProcessorParam = new Parameter();
            responseTimeProcessorParam.setName(StatisticsConstants.RESPONSE_TIME_PROCESSOR);
            responseTimeProcessorParam.setValue(responseTimeProcessor);
            axisConfig.addParameter(responseTimeProcessorParam);
        }
    }

    public void engageNotify(AxisDescription axisDescription)
            throws AxisFault {
View Full Code Here

        // Every component that accesses the synapse configuration should get it from
        // the axis configuration
        Parameter synapseConfigurationParameter = new Parameter(
                SynapseConstants.SYNAPSE_CONFIG, synapseConfig);
        try {
            axisConfiguration.addParameter(synapseConfigurationParameter);
        } catch (AxisFault e) {
            log.warn("Could not set parameter '" + SynapseConstants.SYNAPSE_CONFIG
                    + "' to the Axis2 configuration : " + e.getMessage());
        }
View Full Code Here

        } else {
            throw new IllegalStateException("ServerContextInformation not found");
        }

        try {
            axisConfiguration.addParameter(synapseCtxParam);
            axisConfiguration.addParameter(synapseEnvParam);
        } catch (AxisFault e) {
            String msg =
                    "Could not set parameters '" + SynapseConstants.SYNAPSE_CONFIG +
                            "' and/or '" + SynapseConstants.SYNAPSE_ENV +
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.