advisory code:   
 Destination destination =session.createQueue("test");
    Destination advisoryDestination =
AdvisorySupport.getMessageDiscardedAdvisoryTopic(destination);
    MessageConsumer consumer = session.createConsumer(advisoryDestination);
    consumer.setMessageListener(new MessageListener(){

                @Override
                public void onMessage(Message arg0) {
                }});
in the broker config code :
  policyEntry.setAdvisoryForDiscardingMessages(true);


I hope to get notification when message is discarded.but i cannot get any
message.
I want to know consumer will  get a discardmessage under what circumstances.

thanks!




--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-Advisory-MessageDiscarded-Queue-tp4702789.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to