activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: How to filter message in virtual destinations?
Date Tue, 18 Jun 2013 11:58:14 GMT
Have you looked at http://camel.apache.org/message-filter.html ?


On Tue, Jun 18, 2013 at 4:37 AM, hengyunabc <hengyunabc@gmail.com> wrote:

> My Message is TextMessage, and it's content is JSON string.
> I know that use selector and filtered destinations can filter message.
> http://activemq.apache.org/virtual-destinations.html
> But I don't want to set the jms message property.
>
> I have read these pages:
> http://activemq.apache.org/interceptors.html
> http://activemq.apache.org/developing-plugins.html
>
> I alse read some source under the package
> "org.apache.activemq.broker.region.virtual".
> I didn't found a easy way to filter the message.
> I just want to define a class with a filter function, so I can do anything
> what I want. For example:
>
> class Myfilter implements Filter{
>     public boolean doFilter(Message msg){
>          ...
>     }
> }
>
> Is there anybody tell me how to do it?
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/How-to-filter-message-in-virtual-destinations-tp4668296.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message