On 7 Jan 2010, at 22:12, jongraf wrote:
1) So when onMessage() is called, it is actually coming from the
prefetch?
Yes - which by default is 1000
2) I'd like to take the messages from the queue and put them in a
collection
and send that collection to my REST service, this way I only nee
1) So when onMessage() is called, it is actually coming from the prefetch?
2) I'd like to take the messages from the queue and put them in a collection
and send that collection to my REST service, this way I only need to make
one HTTP call. Do you think I'll be able to do this in my MessageListe
By default, ActiveMQ sends or streams messages to a consumer's local buffer
in batches. The batching of the messages can be controlled via the prefetch
limit. So AMQ pushes messages to the consumer as opposed to having the
consumer pull each message on demand.
http://activemq.apache.org/what-is-