Many thanks for your reply Claus, After performing internet search, I have found that in the JMS specification, a Selector has been defined to filter messages on the queue engine.
"Selectors are defined using SQL 92 syntax and typically apply to message headers; whether the standard properties available on a JMS message or custom headers you can add via the JMS code. ActiveMq has implemented this : http://activemq.apache.org/selectors.html." The Message selector will not resolve my problem because they allow to filter messages on the queue engine but not to perform query against queueing engine. By the way, I'm not really sure that this is a good idea to perform query against queue(s). This is probably better to save the content of the messages in a DB and updated them when specific events occur. KR, Charles Claus Ibsen-2 wrote: > > Hi > > The activeMQ forum might help since it's something to do with browsing > a JMS queue. As I recall the JMS spec isn't very strong in this area > so I think you need to collect the metrics yourself. > > Camel is using JMX instrumentation to gather stats for how many > exchanges has been consumed, and some basic elapsed time etc. See the > JMX console page: > http://activemq.apache.org/camel/camel-jmx.html > > And there is the list component (to be renamed to browse in Camel 2.0) > http://activemq.apache.org/camel/list.html > > > > /Claus Ibsen > Apache Camel Committer > Blog: http://davsclaus.blogspot.com/ > > > > On Fri, Nov 21, 2008 at 9:32 AM, cmoulliard <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I would like to know if there is a strategy available to select messages >> from a queue ? I don't want to remove the messages from a queue but like >> a >> select performed on a DB table, I would like at a certain moment to >> perform >> a query to a queue in order to detect by example "How many messages have >> been processed ?", "How many orders have been matched with my settlement >> engine" ? >> This service is required by a web module. >> >> Idea >> >> From a web page --> call a Spring Service running on my application >> server >> --> call (? camel)/queue to "select messages according to defined >> criteria" >> --> result returned and displayed in a table >> >> KR, >> >> Charles Moulliard >> >> ----- >> Enterprise Architect >> >> Xpectis >> 12, route d'Esch >> L-1470 Luxembourg >> >> Phone +352 25 10 70 470 >> Mobile +352 621 45 36 22 >> >> e-mail : [EMAIL PROTECTED] >> web site : www.xpectis.com www.xpectis.com >> My Blog : http://cmoulliard.blogspot.com/ >> http://cmoulliard.blogspot.com/ >> -- >> View this message in context: >> http://www.nabble.com/Strategy-to-select-messages-from-a-queue---tp20617081s22882p20617081.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> >> > > ----- Enterprise Architect Xpectis 12, route d'Esch L-1470 Luxembourg Phone +352 25 10 70 470 Mobile +352 621 45 36 22 e-mail : [EMAIL PROTECTED] web site : www.xpectis.com www.xpectis.com My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/ -- View this message in context: http://www.nabble.com/Strategy-to-select-messages-from-a-queue---tp20617081s22882p20621437.html Sent from the Camel - Users mailing list archive at Nabble.com.
