activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hengyunabc <hengyun...@gmail.com>
Subject Re: How to filter message in virtual destinations?
Date Thu, 20 Jun 2013 09:22:03 GMT
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
View raw message