You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by OneWhoMikes <ri...@gmail.com> on 2008/10/01 05:24:37 UTC
Re: Ajax receive - long "warmup" time
You might want to look at the timeout period. It seems like you aren't
getting any messages until the first request times out?
I think you pass along a "readTimeout" URL variable, with a value in
milliseconds to set the timeout of the request. At least that's the way it
works for REST messaging (assuming the AjaxListener uses the same
mechanism).
Just a thought,
--Mike
piotr_rezmer wrote:
>
> Hello,
>
> I have following problem. I register ajax with Addlistener(). It starts
> receiving after long seconds ( about 25seconds). It seems that there is a
> long startup cycle in polling. HTTP traffic looks like this:
>
> GET http://localhost:8080/ADA2/amq?timeout=0&_=
> POST http://localhost:8080/ADA2/amq
> ...nothing happens at client side during 25 seconds
> ...after 25 seconds
> GET http://localhost:8080/ADA2/amq?
> ...now every message causes following entry in log
> GET http://localhost:8080/ADA2/amq?
>
> How can I reduce this 25 seconds period, or be able to receive messages
> sooner?
>
>
--
View this message in context: http://www.nabble.com/Ajax-receive---long-%22warmup%22-time-tp19585513p19753953.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Ajax receive - long "warmup" time
Posted by piotr_rezmer <pi...@ens.net.pl>.
OneWhoMikes wrote:
>
> You might want to look at the timeout period. It seems like you aren't
> getting any messages until the first request times out?
>
> I think you pass along a "readTimeout" URL variable, with a value in
> milliseconds to set the timeout of the request. At least that's the way
> it works for REST messaging (assuming the AjaxListener uses the same
> mechanism).
>
I tried to play with client side timeout parameter, no result. Finally i
changed timeout parameter of the servlet, it helped. Poll became more
frequent but "dead period" has been reduced too.
--
View this message in context: http://www.nabble.com/Ajax-receive---long-%22warmup%22-time-tp19585513p19755465.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.