Package org.apache.wookie.beans.util

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


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


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

        assertEquals(allWidgets[0], widgetsByType[0]);
       
        //
        // 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

                 WidgetFactory.update(model, persistenceManager.findWidgetByGuid(model.getIdentifier()), true, upload);
                 _logger.info(message);
               }
               persistenceManager.commit();
             } 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

                 WidgetFactory.update(model, persistenceManager.findWidgetByGuid(model.getIdentifier()), true, upload);
                 _logger.info(message);
               }
               persistenceManager.commit();
             } 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

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.