Re: AjaxServlet questions

2008-03-03 Thread Eric Rodriguez
Eric Rodriguez wrote: function listenersInit() { amq.addListener("anyID","topic://my_topic",myHandler.rcvDiff); } To make it clear: "amq.addListener("anyID","topic://my_topic",myHandler.rcvDiff);" does not need to be inside listenersInit(), that's just how I do it.

Re: AjaxServlet questions

2008-03-03 Thread Eric Rodriguez
1. On the web.xml of your AjaxServlet make sure you have: org.apache.activemq.brokerURL tcp://url.to.amqBroker:61616 The URL of the Message Broker to connect to Now your servlet knows where the broker is. 2. On your HTML/JSP/Javascript subscribe