Package org.wso2.carbon.dataservices.core.engine

Examples of org.wso2.carbon.dataservices.core.engine.DataService.rollbackTransaction()


                try {
                    while ((i = zis.read(buff, 0, buff.length)) > 0) {
                        byteOut.write(buff, 0, i);
                    }
                } catch (IOException ioe) {
                    sysRegistry.rollbackTransaction();
                    log.error(ioe);
                }

                res.setContent(byteOut.toByteArray());
View Full Code Here


            }
            try {
                zipentry = zis.getNextEntry();
            } catch (IOException e) {
                sysRegistry.rollbackTransaction();
                log.error(e);
            }
        }

        try {
View Full Code Here

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

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

      if (transactionStarted) {
        registry.commitTransaction();
      }
    } catch (Throwable e) {
      if (transactionStarted) {
        registry.rollbackTransaction();
      }
      log.error("Unable to set the hash value property to service group "
          + serviceGroupName);
      throw new Exception(e);
    }
View Full Code Here

            systemRegistry.commitTransaction();

        } catch (Exception e) {
            try {
            systemRegistry.rollbackTransaction();
            } catch (RegistryException ex) {
                throw new SavanException(ex);   
            }
            throw new SavanException(e);
        }
View Full Code Here

        } 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

            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

            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

        } 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

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.