activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruce Snyder" <>
Subject Re: MessageServlet reads too many messages - Fixed (patch included)
Date Fri, 26 Sep 2008 03:00:37 GMT
On Wed, Sep 24, 2008 at 9:27 PM, OneWhoMikes <> wrote:
> I just noticed that the 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.  It always reads a message
> at the end of the loop, without first checking to see if maxMessages has
> already been reached.
> I have attached a patchfile here that corrects the issue.
> patchfile.txt

Thanks, Mike! Please create a JIRA issue and attach the patch to it
for tracking purposes.

perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"

Apache ActiveMQ -
Apache Camel -
Apache ServiceMix -


View raw message