You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Interition <pa...@interition.net> on 2006/07/05 16:43:47 UTC
Re: AJAX
Currently we are simply using the activemq-web-demo with our simple
MessagePublisher.html and MessageListener.html. Both of these include the
same javascript declerations as the Portfolio demo. However, the Portfolio
demo uses a servlet to generate stock data on to the JMS topics. Therefore
my MessagePublisher.html just follows the instructions in the documentation
on how to publish data to topics.
eg.
<script type="text/javascript">
function publishMessage() {
amq.sendMessage("topic://MY.TEST","<data><item>HelloWorld</item></data>");
}
</script>
</head>
<body>
<form action="#">
<input type="button" value="Publish Message"
onclick="publishMessage();"/>
</form>
</body>
However, it appears that only every second publish action results in the
MessageListener.html receiving the object. There must be a clue to the
problem in that?
Thanks
--
View this message in context: http://www.nabble.com/AJAX-tf1829608.html#a5182950
Sent from the ActiveMQ - User forum at Nabble.com.