Hi, Based on the ajax chat example I've put together a small test page to display messages that I post to a topic or queue using a php script. When I send 10 messages in a for loop from PHP then the ajax handler is only getting called with a couple of the messages though. Looking at ActiveMQ with jconsole I can see that all of the messages are getting taken off the queue, but they don't all get to the browser. Do I need to do something special in order to make sure I get all of the messages? The relevant code is posted below. Any thoughts or advice would be appreciated. Thanks, Jeff ---------------------- Results:
------------------------------------------ var amq = org.activemq.Amq; Test = function() { return { init: function() { res = jQuery("#results"); amq.addListener("result-handler", "topic://flight.search.result", function(msg) { console.log("msg: " + msg.getAttribute('num')); res.append("

["+msg.getAttribute('num')+"] "); res.append(msg.childNodes[0].data+"

"); }, {selector: "identifier='123'"}); } } }(); ----------------------------------------- for ($i=0; $i < 10; $i++) { $con->send("/topic/flight.search.result", "test message: ".$i."", array("identifier" => '123', 'persistent' => 'true')); }