2 Replies Latest reply on Jan 11, 2010 4:46 AM by ataylor

    Odd code in QueueImpl::deleteMatchingReferences

    timfox

      List<MessageReference> cancelled = scheduledDeliveryHandler.cancel();
               for (MessageReference messageReference : cancelled)
               {
                  if (filter == null || filter.match(messageReference.getMessage()))
                  {
                     deliveringCount.incrementAndGet();
                     acknowledge(tx, messageReference);
                     count++;
                  }
               }

       

      Why is it cancelling ALL the scheduled refs?