Examples of commitTransaction()


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

            zis.close();
        } catch (IOException e) {
            log.error(e);
        }

        sysRegistry.commitTransaction();
        requestContext.setProcessingComplete(true);
    }

}
View Full Code Here

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

            confirmationBean.setData(data.toString());
            success = true;

        } finally {
            if (success) {
                registry.commitTransaction();
            } else {
                registry.rollbackTransaction();
            }
        }
        return confirmationBean;
View Full Code Here

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

            }
            isSuccess = true;
        }
        finally {
            if (isSuccess) {
                systemRegistry.commitTransaction();
            }
            else {
                systemRegistry.rollbackTransaction();
            }
        }
View Full Code Here

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

            try {
                registry.beginTransaction();
                registry.put(gadgetsPath, 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.commitTransaction()

        try {
            registry.beginTransaction();
            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.commitTransaction()

        try {
            registry.beginTransaction();
            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.commitTransaction()

            try {
                registry.beginTransaction();
                registry.put(SYSTEM_GADGETS_PATH, defaultGadgetCollection);

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

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

                            "This is initialy empty and gets filled as advanced search is " +
                            "executed from the web UI.";
                    advancedQueryCollection.setDescription(advaceDesc);
                    systemRegistry.put("/system/queries/advanced", advancedQueryCollection);
                    if (!inTransaction) {
                        systemRegistry.commitTransaction();
                    }
                } catch (Exception e) {
                    String msg = "Unable to setup system collections used by the Carbon server.";
                    log.error(msg, e);
                    systemRegistry.rollbackTransaction();
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.