activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: activemq 4.0 web demo problem in frames
Date Thu, 27 Jul 2006 13:23:30 GMT
I wonder if you are hitting the thread limit of the browser; I think
they often only have 2 threads making requests. So you might want to
do all your ajax stuff in a single frame rather than repeat the ajax
in different frames

On 7/27/06, flyyear <flyyear@hotmail.com> wrote:
>
> I have a webpage consisting of two frames. The page in the first frame
> listens the message from "topic://STOCKS.*" by the following javascript:
> <script>
> function portfolioPoll(first)
> {
>    if (first)
>    {
>      amq.addListener('stocks','topic://STOCKS.*',priceHandler._price);
>    }
> }
>
> amq.addPollHandler(portfolioPoll);
> </script>
> However, when there is not any message from "topic://STOCKS.*", the
> responsing speed of the page in the second frame is terribly slow.
> The speed of the page in the second frames would be OK if there are messages
> from "topic://STOCKS.*".
>
> I wonder whether the receiving program of activemq has blocked all responses
> from different frames in the same window. It seems that the page in the
> second frame receivesdata only when activemq 'polling' datas from the server
> side.
>
> Any suggestions? Many thanks in advance.
> --
> View this message in context: http://www.nabble.com/activemq-4.0-web-demo-problem-in-frames-tf2009390.html#a5520436
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message