camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r759034 - /camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppConsumer.java
Date Fri, 27 Mar 2009 06:52:18 GMT
Author: davsclaus
Date: Fri Mar 27 06:52:16 2009
New Revision: 759034

URL: http://svn.apache.org/viewvc?rev=759034&view=rev
Log:
CAMEL-1467: Must invoke nextMessage to avoid client queue running full.

Modified:
    camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppConsumer.java

Modified: camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppConsumer.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppConsumer.java?rev=759034&r1=759033&r2=759034&view=diff
==============================================================================
--- camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppConsumer.java
(original)
+++ camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppConsumer.java
Fri Mar 27 06:52:16 2009
@@ -100,6 +100,9 @@
         XmppExchange exchange = endpoint.createExchange(message);
         try {
             getProcessor().process(exchange);
+            // must invoke nextMessage to consume the response from the server
+            // otherwise the client local queue will fill up (CAMEL-1467)
+            muc.nextMessage();
         } catch (Exception e) {
             LOG.error("Error while processing XMPP message", e);
         }



Mime
View raw message