Examples of SynapseEnvironmentService


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

    public static ConfigHolder getInstance() {
        return configHolder;
    }

    public SynapseConfiguration getSynapseConfiguration(int id) {
        SynapseEnvironmentService synEnvService = synapseEnvironmentServices.get(id);
        if (synEnvService != null) {
            synEnvService.getSynapseEnvironment().getSynapseConfiguration();
        }
       
        return null;
    }
View Full Code Here

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

    private boolean initialized = false;

    protected void activate(ComponentContext context) throws Exception {
         try {
            initialized = true;
            SynapseEnvironmentService synEnvService = synapseEnvironmentServices.get(
                            MultitenantConstants.SUPER_TENANT_ID);
             if (synEnvService != null) {
                 context.getBundleContext().registerService(TaskManagementService.class.getName(),
                         new StartupAdminService(), null);
                 context.getBundleContext().registerService(
                         JobMetaDataProviderService.class.getName(),
                         new StartupJobMetaDataProviderService(), null);
                 registerDeployer(synEnvService.getConfigurationContext().getAxisConfiguration(),
                         synEnvService.getSynapseEnvironment());
             } else {
                log.error("Couldn't initialize the StartupManager, " +
                    "SynapseEnvironment service and/or TaskDescriptionRepositoryService not found");
             }
        } catch (Throwable t) {
View Full Code Here

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

    private boolean activated = false;

    protected void activate(ComponentContext ctxt) {
        try {
            SynapseEnvironmentService synEnvService =
                    ConfigHolder.getInstance().getSynapseEnvironmentService(
                            MultitenantConstants.SUPER_TENANT_ID);

            registerDeployer(ConfigHolder.getInstance().getAxisConfiguration(),
                    synEnvService.getSynapseEnvironment());
            if (log.isDebugEnabled()) {
                log.debug("Message Processor Admin bundle is activated for Super tenant");
            }
            activated = true;
        } catch (Throwable e) {
View Full Code Here

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

    private boolean activated = false;

    protected void activate(ComponentContext context) {
        try {
            SynapseEnvironmentService synEnvService =
                    ConfigHolder.getInstance().getSynapseEnvironmentService(
                            MultitenantConstants.SUPER_TENANT_ID);

            registerDeployer(ConfigHolder.getInstance().getAxisConfiguration(),
                    synEnvService.getSynapseEnvironment());
            if (log.isDebugEnabled()) {
                log.debug("Sequence Admin bundle is activated ");
            }
            activated = true;
        } catch (Throwable e) {
View Full Code Here

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

       private boolean activated = false;

    protected void activate(ComponentContext ctxt) {
        try {
            SynapseEnvironmentService synEnvService =
                    ConfigHolder.getInstance().getSynapseEnvironmentService(
                            MultitenantConstants.SUPER_TENANT_ID);

            registerDeployer(ConfigHolder.getInstance().getAxisConfiguration(),
                    synEnvService.getSynapseEnvironment());
            if (log.isDebugEnabled()) {
                log.debug("Message Store Admin bundle is activated for Super tenant");
            }
            activated = true;
        } catch (Throwable e) {
View Full Code Here

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

    private boolean activated = false;

    protected void activate(ComponentContext ctxt) {
        try {
            SynapseEnvironmentService synEnvService =
                    ConfigHolder.getInstance().getSynapseEnvironmentService(
                            MultitenantConstants.SUPER_TENANT_ID);

            registerDeployer(ConfigHolder.getInstance().getAxisConfiguration(),
                    synEnvService.getSynapseEnvironment());
            if (log.isDebugEnabled()) {
                log.debug("Endpoint Admin bundle is activated ");
            }
            activated = true;
        } catch (Throwable e) {
View Full Code Here

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

    private boolean activated = false;

    protected void activate(ComponentContext context) {
        try {
            SynapseEnvironmentService synEnvService =
                    ConfigHolder.getInstance().getSynapseEnvironmentService(
                            MultitenantConstants.SUPER_TENANT_ID);

            registerDeployer(ConfigHolder.getInstance().getAxisConfiguration(),
                    synEnvService.getSynapseEnvironment());
            if (log.isDebugEnabled()) {
                log.debug("EventSource Admin bundle is activated for Super tenant");
            }
            activated = true;
        } catch (EventSourceAdminException e) {
View Full Code Here

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

    private Map<Integer, SynapseEnvironmentService> synapseEnvironmentServices =
            new HashMap<Integer, SynapseEnvironmentService>();

    protected void activate(ComponentContext ctxt) {
        try {
            SynapseEnvironmentService synEnvService =
                    synapseEnvironmentServices.get(
                            MultitenantConstants.SUPER_TENANT_ID);

            registerDeployer(ConfigHolder.getInstance().getAxisConfiguration(),
                    synEnvService.getSynapseEnvironment());
            if (log.isDebugEnabled()) {
                log.debug("Endpoint Admin bundle is activated ");
            }
            activated = true;
            if (log.isDebugEnabled()) {
View Full Code Here

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

            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());

            ConfigurationTrackingService trackingSvc = ConfigHolder.getInstance().
                    getSynapseConfigTrackingService();
            if (trackingSvc != null) {
View Full Code Here

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

    private ComponentContext compCtx;

    protected void activate(ComponentContext compCtx) throws Exception {
        this.compCtx = compCtx;
        try {
            SynapseEnvironmentService synapseEnvService =
                    synapseEnvServices.get(MultitenantConstants.SUPER_TENANT_ID);

            if (synapseEnvService != null) {
                createStatisticsStore(synapseEnvService);

                MediationStatisticsStore store = stores.get(MultitenantConstants.SUPER_TENANT_ID);
                MediationStatisticsService service = new MediationStatisticsServiceImpl(store,
                        MultitenantConstants.SUPER_TENANT_ID,
                        synapseEnvService.getConfigurationContext());

                services.put(MultitenantConstants.SUPER_TENANT_ID, service);

                compCtx.getBundleContext().registerService(
                        MediationStatisticsService.class.getName(),
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.