Examples of rollbackTransaction()


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

                        systemRegistry.commitTransaction();
                    }
                } catch (Exception e) {
                    String msg = "Unable to setup system collections used by the Carbon server.";
                    log.error(msg, e);
                    systemRegistry.rollbackTransaction();
                    throw new RegistryException(e.getMessage(), e);
                }
            }

            try {
View Full Code Here

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

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

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

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

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

        } catch (RegistryException e) {
            String errorMsg = "Failed to persist the given resource in registry path " + path;
            log.error(errorMsg, e);
            // rollback
            try {
                registry.rollbackTransaction();

            } catch (RegistryException e1) {
                errorMsg = "Failed to rollback the transaction in registry path " + path;
                log.error(errorMsg, e1);
                throw e1;
View Full Code Here

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

        } catch (RegistryException e) {
            String errorMsg = "Could not move the resource at "+ sourcePath + " to " + targetPath;
            log.error(errorMsg, e);
            // rollback
            try {
                registry.rollbackTransaction();

            } catch (RegistryException e1) {
                errorMsg = "Failed to rollback moving the resource at " + sourcePath + " to " + targetPath;
                log.error(errorMsg, e1);
                throw e1;
View Full Code Here

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

        } catch (RegistryException e) {
            String errorMsg = "Could not delete resource at "+ resourcePath;
            log.error(errorMsg, e);
            // rollback
            try {
                registry.rollbackTransaction();

            } catch (RegistryException e1) {
                errorMsg = "Failed to rollback the transaction in registry path " + resourcePath;
                log.error(errorMsg, e1);
                throw e1;
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.