Hi Doug, ajax client connects to the servlet (called AjaxServlet) that runs inside jetty (or any other web container) that server like a proxy to the broker. Therefore, you should all jms related stuff inside your web application. Take a look at webapps/demo/WEB-INF/web.xml for an example of how to do it.
Cheers -- Dejan Bosanac Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Mon, Sep 14, 2009 at 5:45 PM, Knight, Doug <dkni...@mitre.org> wrote: > All, > From the JavaScript-based chat example, and various all-similar sources for > how to configure it (i.e. see > http://docs.codehaus.org/display/JETTY/Integrating+with+ActiveMQ for > example), I don't understand how the JavaScript client knows what server to > connect to. There is mentioned some info about adding to the web.xml, but is > this used by the JavaScript app or the Jetty server on the server side? I've > tried to "clone" the chat app to model my app after it (accessing a remote > JMS topic to retrieve XML data, and display on a GIS map), with no success. > I never get connected to the CHAT.DEMO topic. Any help on configuring both > the client and server sides for a JavaScript app would be greatly > appreciated. Once I get this working, I'd even be willing to share detailed > info on the configuration I had to setup. > > Doug >