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 <hengyun...@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.