activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dragisa Krsmanovic <dkrsmano...@plos.org>
Subject Re: ActiveMQ 5.3.0 and Camel's PollingConsumer
Date Mon, 14 Dec 2009 17:53:29 GMT
On Mon, 2009-12-14 at 09:48 -0800, Dragisa Krsmanovic wrote:
> while ((exchange = consumerTemplate.receive(endpoint, 2000l)) !=
> null) {
> 
> result.append(exchange.getIn().getBody(String.class)).append('/');
>       } 


To add more detail. This loop seems to read only one message at a time.
Even when there is multiple messages waiting.



-- 
Dragisa Krsmanovic
Java Developer
Public Library of Science 
http://www.plos.org


--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This email is confidential to the intended recipient. If you have received it in error, please
notify the sender and delete it from your system. Any unauthorized use, disclosure or copying
is not permitted. The views or opinions presented are solely those of the sender and do not
necessarily represent those of Public Library of Science unless otherwise specifically stated.
Please note that neither Public Library of Science nor any of its agents accept any responsibility
for any viruses that may be contained in this e-mail or its attachments and it is your responsibility
to scan the e-mail and attachments (if any).


Mime
View raw message