activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SuoNayi <suonayi2...@163.com>
Subject Re:Re: How to filter message in virtual destinations?
Date Fri, 21 Jun 2013 01:29:33 GMT
You can not add/remove/configure broker plugin in runtime as well.
Jakub's approach is surely worth a try.




At 2013-06-20 17:22:03,hengyunabc <hengyunabc@gmail.com> wrote:
>I don't know how to discard a message in BrokerFilter...
>
>class MyBrokerFilter extends BrokerFilter {
>    public void send(ProducerBrokerExchange producerExchange, Message
>messageSend) throws Exception {
>       
>if("discardQueueName".equals(messageSend.getDestination().getPhysicalName())){
>            //do nothing?  Or throw a Exception?
>            return;
>        }
>    }
>}
>
>It seems wrong...
>
>
>
>--
>View this message in context: http://activemq.2283324.n4.nabble.com/How-to-filter-message-in-virtual-destinations-tp4668296p4668406.html
>Sent from the ActiveMQ - User mailing list archive at Nabble.com.

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