activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From OneWhoMikes <>
Subject Re: Ajax receive - long "warmup" time
Date Wed, 01 Oct 2008 03:24:37 GMT

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

Just a thought,


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?
> 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:
Sent from the ActiveMQ - User mailing list archive at

View raw message