Examples of CachingComponentException


Examples of org.wso2.carbon.caching.CachingComponentException

                             + RegistryResources.SERVICES + serviceName;

        try {
            this.enableCaching(service, confData, servicePath);
        } catch (AxisFault af) {
            throw new CachingComponentException("errorEngagingModuleToService",
                                                new String[]{serviceName}, af, log);
        }

        if (log.isDebugEnabled()) {
            log.debug("Engaged caching for the Axis service: " + serviceName);
View Full Code Here

Examples of org.wso2.carbon.caching.CachingComponentException

                               RegistryResources.OPERATIONS + operationName;

        try {
            this.enableCaching(operation, confData, operationPath);
        } catch (AxisFault af) {
            throw new CachingComponentException("errorEngagingModuleToOperation",
                                                new String[]{operationName}, af, log);
        }

        if (log.isDebugEnabled()) {
            log.debug("Engaged caching for the Axis operation: " + serviceName
View Full Code Here

Examples of org.wso2.carbon.caching.CachingComponentException

            }
            description.engageModule(cachingModule);
            configRegistry.commitTransaction();
        } catch (Exception e) {
            rollbackTransaction(e);
            throw new CachingComponentException("errorSavingPolicy", e, log);
        }

        // TODO - At the moment there is no notification mechanism to notify that the policy used by the particular
        // service has changed. So all we can do is to engage the module each time after doing everything with policy.
    }
View Full Code Here

Examples of org.wso2.carbon.caching.CachingComponentException

            }
            configRegistry.commitTransaction();
        } catch (Exception e) {
            rollbackTransaction(e);
            log.error("Error occured in globally engaging caching", e);
            throw new CachingComponentException("errorEngagingModuleAtRegistry", log);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.caching.CachingComponentException

                             + RegistryResources.SERVICES + serviceName;

        try {
            this.disableCaching(service, servicePath);
        } catch (AxisFault af) {
            throw new CachingComponentException("errorDisablingCaching",
                                                new String[]{serviceName}, af, log);
        }

        if (log.isDebugEnabled()) {
            log.debug("Disengaged caching for the Axis service: " + serviceName);
View Full Code Here

Examples of org.wso2.carbon.caching.CachingComponentException

                               + operationName;

        try {
            this.disableCaching(operation, operationPath);
        } catch (AxisFault af) {
            throw new CachingComponentException("errorDisablingCaching",
                                                new String[]{serviceName + "operation : " + operationName}, af, log);
        }

        if (log.isDebugEnabled()) {
            log.debug("Disengaged caching for the Axis operation: " + operationName +
View Full Code Here

Examples of org.wso2.carbon.caching.CachingComponentException

            // Disengage from description
            description.disengageModule(cachingModule);
            configRegistry.commitTransaction();
        } catch (Exception e) {
            rollbackTransaction(e);
            throw new CachingComponentException("errorDisablingAtRegistry", e, log);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.caching.CachingComponentException

            }
            configRegistry.commitTransaction();
        } catch (RegistryException e) {
            rollbackTransaction(e);
            log.error("Error occured while removing global caching from configRegistry", e);
            throw new CachingComponentException("errorDisablingAtRegistry", log);
        } catch (AxisFault e) {
            rollbackTransaction(e);
            log.error("Error occured while disengaging module from AxisService", e);
            throw new CachingComponentException("errorDisablingCaching", log);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.caching.CachingComponentException

        if (log.isDebugEnabled()) {
            log.debug("Retrieving Axis service: " + serviceName);
        }
        AxisService axisService = axisConfig.getServiceForActivation(serviceName);
        if (axisService == null) {
            throw new CachingComponentException("noSuchService",
                                                new String[]{serviceName}, log);
        }
        return axisService;
    }
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.