• Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • JBossAS-4.0.5.GA
    • None
    • JMS (JBossMQ)
    • None

      Need to test BasicQueue.acknowledge()
      whether it should also add a PostRollback task for a NACK under a transaction.

      i.e.

      // Was it a negative acknowledge??
      if (!item.isAck)

      { Runnable task = new RestoreMessageTask(m); server.getPersistenceManager().getTxManager().addPostCommitTask(txId, task); + server.getPersistenceManager().getTxManager().addPostRollbackjTask(txId, task); }

      The hard part is wrting such a test since it is a normal condition.
      Probably need to use direct invocation on the server invoker ?

              adrian.brock Adrian Brock (Inactive)
              luc.texier Luc Texier (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: