activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hengyunabc <hengyun...@gmail.com>
Subject How to filter message in virtual destinations?
Date Tue, 18 Jun 2013 08:37:20 GMT
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.

Mime
View raw message