Examples of rollbackTransaction()


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

        dataService.beginTransaction();
          OMElement lastRequestResult = DSSessionManager.getCurrentRequestBox().execute();
          dataService.endTransaction();
          return lastRequestResult;
      } catch (DataServiceFault e) {
        dataService.rollbackTransaction();
        throw new DataServiceFault(e, "Error in boxcarring end");
      } finally {
        DSSessionManager.getCurrentRequestBox().clear();
        DSSessionManager.setBoxcarring(false);
        TLParamStore.clear();
View Full Code Here

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

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

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

            }
            if (!transactionStarted) {
                registry.commitTransaction();
            }
        } catch (Exception e) {
            registry.rollbackTransaction();
            throw e;
        }
    }

View Full Code Here

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

            }
            if (!transactionStarted) {
                registry.commitTransaction();
            }
        } catch (Exception e) {
            registry.rollbackTransaction();
            throw e;
        }
    }

    private void applySecurityParameters(AxisService service, SecurityScenario secScenario) {
View Full Code Here

Examples of org.wso2.carbon.registry.core.Registry.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

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

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

        try {
View Full Code Here

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

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

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

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

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

      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

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

            systemRegistry.commitTransaction();

        } catch (Exception e) {
            try {
            systemRegistry.rollbackTransaction();
            } catch (RegistryException ex) {
                throw new SavanException(ex);   
            }
            throw new SavanException(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.