activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Rodriguez <>
Subject Re: AjaxServlet questions
Date Mon, 03 Mar 2008 09:34:11 GMT
1. On the web.xml of your AjaxServlet make sure you have:
		The URL of the Message Broker to connect to

Now your servlet knows where the broker is.
2. On your HTML/JSP/Javascript subscribe to the topic/queue where your 
JMS app is publishing messages:
var myHandler =
	 rcvDiff: function(message)
	function listenersInit() {
3. You're ready to go. You don't need to embed AMQ (but you could if you 
want). if you want to send message or create a new topic/queue just do:


Brent Baxter wrote:
> So, my questions are:
> 1. How do I configure the AjaxServlet to find my AMQ and related topics?
> 2. Or, is this just "auto-magically" done for me?
> 3. Or, do I need to be running AMQ embedded in the same servlet container as
> my web application in order for this to work?
> 4. Or, and is is my worst fear, is none of this possible since the AMQ
> AjaxServlet simply creates topics / queues on the fly for your web app and
> does not integrate at all with the full AMQ broker?
> Thanks in advance.
> Brent

View raw message