activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From flyyear <flyy...@hotmail.com>
Subject activemq 4.0 web demo problem in frames
Date Thu, 27 Jul 2006 13:01:50 GMT

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.


Mime
View raw message