Ignore invalid commands to the AdvisoryConsumer- can happen due

to the use of wildcards across a network

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@634775 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-03-07 18:43:51 +00:00
parent 26eedea5fb
commit c803f531e3
1 changed files with 4 additions and 3 deletions

View File

@ -80,9 +80,10 @@ public class AdvisoryConsumer implements ActiveMQDispatcher {
if (o != null && o.getClass() == DestinationInfo.class) {
processDestinationInfo((DestinationInfo)o);
} else {
connection.onAsyncException(new JMSException(
"Unexpected message was dispatched to the AdvisoryConsumer: "
+ md));
//This can happen across networks
if (LOG.isDebugEnabled()) {
LOG.debug("Unexpected message was dispatched to the AdvisoryConsumer: "+md);
}
}
}