Selectors can be implemented by simply changing org.apache.activemq.web.WebClient.java the getConsumer(Destination destination, boolean create) method. Change:
consumer = getSession().createConsumer(destination); to: String selector = "someJMSHeader = someSQL92Selector"; consumer = getSession().createConsumer(destination,selector); what i'm doing is sending the value of someSQL92Selector as an attribute in the session so that every client uses its own selector. Hope this helps others :) Regards, toxicafunk wrote: > > I'm also interested on this subject. Looking at activemq-web-4.1.1.jar, i > found the QueueBrowseServlet: > > Renders the contents of a queue using some kind of view. The URI is > assumed to be the queue. The following parameters can be used: > > * view - specifies the type of the view such as simple, xml, rss > * selector - specifies the SQL 92 selector to apply to the queue > > However there seems to be no direct relation between QueueBrowseServlet > and AjaxServlet so i think one needs to set it on the web.xml and invoke > it separately. > > It doesn't seem to be difficult to implement this behavior inside the > AjaxServlet but i would like to know if this has already been done for 5.0 > or if i'm missing something. If not then I'm more than willing to work on > this so others can use it too. > > thx! > > > didyeah971 wrote: >> >> Hi, >> I was wondering if it was possible to use JMS Selector or queue Browsing >> with the Ajax connector. >> It would be great if i could retrieve the messages and let them in the >> queue anyway. >> Thx for help, >> Did >> > > -- View this message in context: http://www.nabble.com/JMS-Selectors--Queue-Browsing---Ajax-tp10857158s2354p14594026.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.