activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r634775 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/AdvisoryConsumer.java
Date Fri, 07 Mar 2008 18:44:00 GMT
Author: rajdavies
Date: Fri Mar  7 10:43:51 2008
New Revision: 634775

URL: http://svn.apache.org/viewvc?rev=634775&view=rev
Log:
Ignore invalid commands to the AdvisoryConsumer- can happen due
to the use of wildcards across a network

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/AdvisoryConsumer.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/AdvisoryConsumer.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/AdvisoryConsumer.java?rev=634775&r1=634774&r2=634775&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/AdvisoryConsumer.java (original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/AdvisoryConsumer.java Fri
Mar  7 10:43:51 2008
@@ -80,9 +80,10 @@
         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);
+            }
         }
 
     }



Mime
View raw message