Examples of rollbackTransaction()


Examples of org.wso2.carbon.registry.core.Registry.rollbackTransaction()

        } catch (Exception e) {
            log.error(e.getMessage(), e);
            if (registry != null) {
                try {
                    registry.rollbackTransaction();
                } catch (Exception ex) {
                    log.error(ex.getMessage(), e);
                }
            }
        }
View Full Code Here

Examples of org.wso2.carbon.registry.core.Registry.rollbackTransaction()

            registry.commitTransaction();
        } catch (Exception e) {
            log.error(e.getMessage(), e);
            if (registry != null) {
                try {
                    registry.rollbackTransaction();
                } catch (Exception ex) {
                    log.error(ex.getMessage(), e);
                }
            }
        }
View Full Code Here

Examples of org.wso2.carbon.registry.core.Registry.rollbackTransaction()

            registry.commitTransaction();
        } catch (Exception e) {
            log.error(e.getMessage(), e);
            if (registry != null) {
                try {
                    registry.rollbackTransaction();
                } catch (Exception ex) {
                    log.error(ex.getMessage(), e);
                }
            }
        }
View Full Code Here

Examples of org.wso2.carbon.registry.core.Registry.rollbackTransaction()

        } catch (Exception e) {
            log.error(e.getMessage(), e);
            if (registry != null) {
                try {
                    if (transactionStarted) {
                        registry.rollbackTransaction();
                    }
                } catch (Exception ex) {
                    log.error(ex.getMessage(), ex);
                }
            }
View Full Code Here

Examples of org.wso2.carbon.registry.core.Registry.rollbackTransaction()

        try {
            registry.beginTransaction();
            ThrottlingUtils.saveTemplatePoliciesToRegistry(registry);
            registry.commitTransaction();
        } catch (Exception e) {
            registry.rollbackTransaction();
            String msg = "Failed to save template policies in throttling component";
            log.error(msg, e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.registry.core.Registry.rollbackTransaction()

                if (!transactionStarted) {
                    registry.commitTransaction();
                }
            } catch (Exception e) {
                if (!transactionStarted) {
                    registry.rollbackTransaction();
                }
                String msg = "Error deleting resources in IS because " + e.getMessage();
                log.error(msg, e);
                throw new UserStoreException(msg, e);
            }
View Full Code Here

Examples of org.wso2.carbon.registry.core.session.UserRegistry.rollbackTransaction()

                registry.put(gadgetsPath, defaultGadgetCollection);

                transferDirectoryContentToRegistry(rootDirectory, registry, rootPath, tenantId);
                registry.commitTransaction();
            } catch (Exception e) {
                registry.rollbackTransaction();
                log.error(e.getMessage(), e);
            }


        } catch (DashboardPopulatorException e) {
View Full Code Here

Examples of org.wso2.carbon.registry.core.session.UserRegistry.rollbackTransaction()

            registry.put(REGISTRY_GADGET_STORAGE_PATH, defaultGadgetCollection);

            transferDirectoryContentToRegistry(rootDirectory, registry, rootPath, tenantId);
            registry.commitTransaction();
        } catch (Exception e) {
            registry.rollbackTransaction();
            log.error(e.getMessage(), e);
        }

    }
View Full Code Here

Examples of org.wso2.carbon.registry.core.session.UserRegistry.rollbackTransaction()

            registry.put(REGISTRY_GADGET_STORAGE_PATH, defaultGadgetCollection);

            transferDirectoryContentToRegistry(rootDirectory, registry, rootPath, tenantId);
            registry.commitTransaction();
        } catch (Exception e) {
            registry.rollbackTransaction();
            log.error(e.getMessage(), e);
        }

    }
View Full Code Here

Examples of org.wso2.carbon.registry.core.session.UserRegistry.rollbackTransaction()

                registry.put(SYSTEM_GADGETS_PATH, defaultGadgetCollection);

                transferDirectoryContentToRegistry(rootDirectory, registry, rootPath);
                registry.commitTransaction();
            } catch (Exception e) {
                registry.rollbackTransaction();
                log.error(e);
            }


        } catch (DashboardPopulatorException e) {
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.