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.