Package org.wso2.carbon.billing.core.jdbc

Examples of org.wso2.carbon.billing.core.jdbc.DataAccessObject.commitTransaction()


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

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


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

            hash);
        registry.put(serviceResourcePath, serviceResource);
        serviceResource.discard();
      }
      if (transactionStarted) {
        registry.commitTransaction();
      }
    } catch (Throwable e) {
      if (transactionStarted) {
        registry.rollbackTransaction();
      }
View Full Code Here

                resource = systemRegistry.newResource();
                resource.setContent(getDefaultProtocols().toString());
                systemRegistry.put(PROTOCOL_PATH, resource);
            }

            systemRegistry.commitTransaction();

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

                registry.put(location, reportFilesResource);
            }
            }finally {
              xmlStream.close();
            }
            registry.commitTransaction();
        } catch (Exception e) {
            String msg = "Error occurred adding .jrxml file from " +
                    bundle.getSymbolicName() + " to registry";
            throw new ReportingException(msg, e);
        }
View Full Code Here

            registry.put(gadgetLayoutPath, gadgetLayout);

            // Done
            response = true;
            registry.commitTransaction();

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

            }
            registry.delete(gadgetPath);

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

                    currentTabLayout);
            registry.put(dashboardTabPath, userTabResource);

            // Done
            response = Integer.parseInt(nextTabId);
            registry.commitTransaction();
        } catch (Exception e) {
            log.error(e.getMessage(), e);
            if (registry != null) {
                try {
                    registry.rollbackTransaction();
View Full Code Here

            registry.delete(tabPath);

            // Done
            response = true;
            if (transactionStarted) {
                registry.commitTransaction();
            }
        } catch (Exception e) {
            log.error(e.getMessage(), e);
            if (registry != null) {
                try {
View Full Code Here

            return;
        }
        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

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.