Details

      Description

      in case of an exception, both a PostCommit Task and a PostRollback Task should be added

      try

      { if (m.isPersistent()) server.getPersistenceManager().remove(m, txId); }

      catch (Throwable t)

      { // Something is wrong with the persistence manager, // force a NACK with a rollback/error Runnable task = new RestoreMessageTask(m); TxManager txManager = server.getPersistenceManager().getTxManager(); + txManager.addPostCommitTask(txId, task); txManager.addPostRollbackTask(txId, task); SpyJMSException.rethrowAsJMSException("Error during ACK ref=" + m, t); }

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                adrian.brock Adrian Brock
                Reporter:
                luc.texier Luc Texier
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: