Examples of SynapseRegistrationsService


Examples of org.wso2.carbon.mediation.initializer.services.SynapseRegistrationsService

    private void publishConfiguration(SynapseConfiguration synCfg, Axis2SynapseEnvironment synEnv) {

        int tenantId = SuperTenantCarbonContext.getCurrentContext(configurationContext).getTenantId();

        SynapseRegistrationsService registrationsService =
                ConfigHolder.getInstance().getSynapseRegistrationService(tenantId);

        if (registrationsService != null) {
            serverContextInformation.setSynapseConfiguration(synCfg);

            // populate the Synapse Configuration
            ServiceRegistration configRegistration =
                    registrationsService.getSynapseConfigurationServiceRegistration();
            SynapseConfigurationService synCfgSvc = (SynapseConfigurationService)
                    ConfigHolder.getInstance().getBundleContext().getService(
                            configRegistration.getReference());
            synCfgSvc.setSynapseConfiguration(synCfg);
            configRegistration.setProperties(new Properties());

            // populate the Synapse Environment
            ServiceRegistration synEnvSvcRegistration =
                    registrationsService.getSynapseEnvironmentServiceRegistration();
            SynapseEnvironmentService synEnvSvc = (SynapseEnvironmentService)
                    ConfigHolder.getInstance().getBundleContext().getService(
                            synEnvSvcRegistration.getReference());
            synEnvSvc.setSynapseEnvironment(synEnv);
            synEnvSvcRegistration.setProperties(new Properties());
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.