Package org.apache.wookie.beans.util

Examples of org.apache.wookie.beans.util.IPersistenceManager.rollback()


              persistenceManager.commit();
              // terminate retry attempts on success
              retryChainInvocation = false;
          } catch (ServletException se) {
              // rollback transaction on exception
              persistenceManager.rollback();
              throw se;
          } catch (IOException ioe) {
              // rollback transaction on exception
              persistenceManager.rollback();
              throw ioe;
View Full Code Here


              // rollback transaction on exception
              persistenceManager.rollback();
              throw se;
          } catch (IOException ioe) {
              // rollback transaction on exception
              persistenceManager.rollback();
              throw ioe;
          } catch (PersistenceCommitException pce) {
                // rollback and retry on commit exception if response not committed             
              persistenceManager.rollback();
              retryChainInvocation = (!retryChainInvocation && !response.isCommitted());
View Full Code Here

              // rollback transaction on exception
              persistenceManager.rollback();
              throw ioe;
          } catch (PersistenceCommitException pce) {
                // rollback and retry on commit exception if response not committed             
              persistenceManager.rollback();
              retryChainInvocation = (!retryChainInvocation && !response.isCommitted());
              if (!retryChainInvocation) {
                  throw new RuntimeException("Persistence commit exception caught for transaction: "+pce, pce);                 
              }
          } catch (Throwable t) {
View Full Code Here

              if (!retryChainInvocation) {
                  throw new RuntimeException("Persistence commit exception caught for transaction: "+pce, pce);                 
              }
          } catch (Throwable t) {
              // rollback transaction on exception
              persistenceManager.rollback();
              throw new RuntimeException("Exception caught for transaction: "+t, t);
          } finally {
              // close thread persistence manager
              PersistenceManagerFactory.closePersistenceManager();
          }
View Full Code Here

                                _logger.info(message);
                            }
                            persistenceManager.commit();
                            NewWidgetBroadcaster.broadcast(configuration, model.getIdentifier());
                        } catch (IOException e) {
                            persistenceManager.rollback();
                            String error = f.getName()+":"+localizedMessages.getString("WidgetHotDeploy.1") + " - " + e.getLocalizedMessage();
                            _logger.error(error, e);
                        } catch (BadWidgetZipFileException e) {
                            persistenceManager.rollback();
                            String error = f.getName()+":"+localizedMessages.getString("WidgetHotDeploy.2") + " - " + e.getLocalizedMessage();
View Full Code Here

                        } catch (IOException e) {
                            persistenceManager.rollback();
                            String error = f.getName()+":"+localizedMessages.getString("WidgetHotDeploy.1") + " - " + e.getLocalizedMessage();
                            _logger.error(error, e);
                        } catch (BadWidgetZipFileException e) {
                            persistenceManager.rollback();
                            String error = f.getName()+":"+localizedMessages.getString("WidgetHotDeploy.2") + " - " + e.getLocalizedMessage();
                            _logger.error(error, e);
                        } catch (BadManifestException e) {
                            persistenceManager.rollback();
                            String error = f.getName()+":"+localizedMessages.getString("WidgetHotDeploy.3") + " - " + e.getLocalizedMessage();
View Full Code Here

                        } catch (BadWidgetZipFileException e) {
                            persistenceManager.rollback();
                            String error = f.getName()+":"+localizedMessages.getString("WidgetHotDeploy.2") + " - " + e.getLocalizedMessage();
                            _logger.error(error, e);
                        } catch (BadManifestException e) {
                            persistenceManager.rollback();
                            String error = f.getName()+":"+localizedMessages.getString("WidgetHotDeploy.3") + " - " + e.getLocalizedMessage();
                            _logger.error(error, e);
                        } catch (Exception e) {
                            persistenceManager.rollback();
                            String error = f.getName()+":"+e.getLocalizedMessage();
View Full Code Here

                        } catch (BadManifestException e) {
                            persistenceManager.rollback();
                            String error = f.getName()+":"+localizedMessages.getString("WidgetHotDeploy.3") + " - " + e.getLocalizedMessage();
                            _logger.error(error, e);
                        } catch (Exception e) {
                            persistenceManager.rollback();
                            String error = f.getName()+":"+e.getLocalizedMessage();
                            _logger.error(error, e);
                        } finally {
                            // close thread persistence manager
                            PersistenceManagerFactory.closePersistenceManager();               
View Full Code Here

        assertEquals(allWidgets[0], widgetByGuid);
       
        //
        // rollback and close persistence manager transaction
        //
        persistenceManager.rollback();
        PersistenceManagerFactory.closePersistenceManager();
       
        //
        // allocate and begin persistence manager transaction
        //
View Full Code Here

        // assertEquals(0, participants.length);
       
        //
        // rollback and close persistence manager transaction
        //
        persistenceManager.rollback();
        PersistenceManagerFactory.closePersistenceManager();

        logger.info("Test run");
    }
   
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.