Examples of endTenantFlow()


Examples of org.wso2.carbon.utils.multitenancy.CarbonContextHolder.endTenantFlow()

            try {
                currentCarbonContextHolder.startTenantFlow();
                currentCarbonContextHolder.setTenantId(MultitenantConstants.SUPER_TENANT_ID);
                currentCarbonContextHolder.unloadTenant();
            } finally {
                currentCarbonContextHolder.endTenantFlow();
            }

            // ACL keys its loggers off of the ContextClassLoader which prevents GC without calling release.
            // This section explicitly calls release if ACL is used.
            try {
View Full Code Here

Examples of org.wso2.carbon.utils.multitenancy.CarbonContextHolder.endTenantFlow()

            } else if (faultyWebapp != null &&
                    faultyWebapp.getLastModifiedTime() != lastModifiedTime) {
                handleHotDeployment(webappFile, webContextParams, applicationEventListeners);
            }
        } finally {
            currentCarbonContextHolder.endTenantFlow();
        }
    }

    /**
     * Hot deploy a webapp. i.e., deploy a webapp that has newly become available.
View Full Code Here

Examples of org.wso2.carbon.utils.multitenancy.CarbonContextHolder.endTenantFlow()

                undeploy(deployedWebapps.get(fileName));
            }

            clearFaultyWebapp(fileName);
        } finally {
            currentCarbonContextHolder.endTenantFlow();
        }
    }

    /**
     * Handle undeployment.
View Full Code Here

Examples of org.wso2.carbon.utils.multitenancy.CarbonContextHolder.endTenantFlow()

                deployedWebapps.get(fileName).lazyUnload();
            }

            clearFaultyWebapp(fileName);
        } finally {
            currentCarbonContextHolder.endTenantFlow();
        }
    }

    private void clearFaultyWebapp(String fileName) {
        Map<String, WebApplication> faultyWebapps = webappsHolder.getFaultyWebapps();
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.