activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Eirik Rønning" <larsei...@gmail.com>
Subject Re: Push or poll
Date Wed, 29 Oct 2008 08:40:48 GMT
Thanks for helping.
I have sofar used the mesasgelistener , ut will probably move to
receive(long) method to have the client poll for messages

On Wed, Oct 29, 2008 at 8:59 AM, Marco Buss <marco.buss@gmx.de> wrote:

> Lars Eirik Rønning schrieb:
>
>  Hi.
>> Is there a way for my client application to poll at regular intervals?
>> I understand that by default activemq uses push to distrubte messages.. Am
>> i
>> right or wrong?
>> I would prefer having polling , but I do not run a webserver so i cannot
>> use
>> servlets
>>
>> Thanks.
>> Lars
>>
>>
>>
> Hi,
> why you think you need servlets to use push? You can register a
> MessageListener on a MessageConsumer to use the push. If you want to pull
> the message by your own the you must use the receive-Methods from the
> MessageConsumer.
>
> Regards
> Marco
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message