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

AjaxServlet questions

2008-02-29 Thread Brent Baxter
Okay, so I have read nearly everything I can find on the ActiveMQ web site and the various forums and I am still left with questions regarding how I can use the AjaxServlet in my application. Specifically what I seem to be missing is how do I configure the AjaxServlet to use my ActiveMQ topics? S