Browsing queues is a core JMS feature...

http://java.sun.com/j2ee/1.4/docs/api/javax/jms/Session.html#createBrowser(javax.jms.Queue,%20java.lang.String)

so you can do it with JMS code, Camel, command line tools etc


2008/11/24 cmoulliard <[EMAIL PROTECTED]>:
>
> Many thanks James.
>
> I presume that for ActiveMq, you means this feature to browse the queues :
>
> http://activemq.apache.org/activemq-command-line-tools-reference.html#ActiveMQCommandLineToolsReference-browse
>
> KR,
>
> Charles
>
>
> James.Strachan wrote:
>>
>> 2008/11/21 cmoulliard <[EMAIL PROTECTED]>:
>>>
>>> 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.
>>
>> You can browse queues using the queue browser - you can also browse
>> supplying a selector to filter it.
>>
>>> 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.
>>
>> It depends on your requirements really. Message brokers are designed
>> to support selectors on topics/queues and queue browsing. However
>> selectors are quite simple; they only work on headers on the message.
>> If you want complex queries - or content based queries and you don't
>> want to work in a stream based manner like messaging but want a
>> repository/database of data to process/update/filter on demand
>> whenever, then sure use a database.
>>
>> --
>> James
>> -------
>> http://macstrac.blogspot.com/
>>
>> Open Source Integration
>> http://fusesource.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---tp20617081s22882p20658683.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Reply via email to