MessageServlet reads too many messages
--------------------------------------
Key: AMQ-1955
URL: https://issues.apache.org/activemq/browse/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
Attachments: MessageServlet.java.patch
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.