<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div></div><div>Hello,</div><div>I am new to RabbitMQ, wanted to setup a quick testing web page. This is what I did so far, but I am not able to get anything:</div><div><br></div><div>* Jetty 7.0.2, Spring 3.0.2, running inside Eclipse 3.5.1</div><div>* Using RabbitMQ 1.7.2, amqp-js. RabbitMQ running on localhost.</div><div><br></div><div>Here is my web page (using the part of the sample application in amqp-js):</div><div><html></div><div><div><head></div><div><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></div><div><script src="<%=request.getContextPath()%>/scripts/swfobject.js" type="text/javascript"></script></div><div><script src="<%=request.getContextPath()%>/scripts/mq.js"
type="text/javascript"></script></div><div></head></div><div><div><button onclick="sendMsg();">Send Message</button></div></div><div><div><script type="text/javascript"></div><div><br></div><div>function sendMsg () {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>MQ.exchange("stocks").publish({ value: -45.00 }, "stocks.nyse.amd");</div><div>}</div><div><br></div><div>MQ.configure({</div><div> //enable logging to the console</div><div> logger: console,</div><div> host: "localhost"</div><div>});<span class="Apple-tab-span" style="white-space:pre">        </span></div><div><br></div><div>MQ.on("load", function() {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>console.log("Test");</div><div>});</div><div><br></div><div>MQ.on("connect", function() {</div><div><span class="Apple-tab-span" style="white-space:pre">
        </span>alert("Connected");</div><div>});</div><div><br></div><div>MQ.on("disconnect", function() {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>alert("Disconnected");</div><div>});</div><div><br></div><div>MQ.queue("auto").callback(function(m) {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>alert("No Binding Matches");</div><div>});</div><div><br></div><div>MQ.queue("auto").bind("stocks", "stocks.#").callback(function(m) {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>alert("All Indexs " + m.data.value);</div><div>});</div><div><br></div><div></script></div><div><br></div><div></body></div><div></html></div></div><div><br></div><div><br></div>When clicking the button, I do not see anything. </div><div><br></div><div>any help is very much appreciated!</div><div><br></div>rgds,<br>canal<div><br></div><div style="position:fixed"></div>
</div><br>
</body></html>