activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Richmond (JIRA)" <>
Subject [jira] Created: (AMQ-1955) MessageServlet reads too many messages
Date Fri, 26 Sep 2008 14:46:52 GMT
MessageServlet reads too many messages

                 Key: AMQ-1955
             Project: ActiveMQ
          Issue Type: Bug
          Components: Transport
    Affects Versions: 5.2.0, 5.1.0, 5.0.0, 5.3.0
         Environment: Any
            Reporter: Mike Richmond

MessageServlet inside activemq-web will pull maxMessages+1 messages off of the queue but only
write a response containing maxMessages. 
After some debugging, I figured out that the problem is with the while loop that reads messages
inside the doMessages method (and doMessagesWithoutContinuation).  It always reads a message
at the end of the loop, without first checking to see if maxMessages has already been reached.

Attached is a patch that corrects this issue.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message