camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r676223 - /activemq/camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppEndpoint.java
Date Sat, 12 Jul 2008 19:41:38 GMT
Author: davsclaus
Date: Sat Jul 12 12:41:38 2008
New Revision: 676223

URL: http://svn.apache.org/viewvc?rev=676223&view=rev
Log:
CAMEL-710: Applied patch with thanks to Vadim

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

Modified: activemq/camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppEndpoint.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppEndpoint.java?rev=676223&r1=676222&r2=676223&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppEndpoint.java
(original)
+++ activemq/camel/trunk/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppEndpoint.java
Sat Jul 12 12:41:38 2008
@@ -31,7 +31,7 @@
 import org.jivesoftware.smack.packet.Presence;
 
 /**
- * An XMPP Endpoint
+ * A XMPP Endpoint
  *
  * @version $Revision:520964 $
  */
@@ -103,8 +103,6 @@
     /**
      * Sets the binding used to convert from a Camel message to and from an XMPP
      * message
-     *
-     * @param binding the binding to use
      */
     public void setBinding(XmppBinding binding) {
         this.binding = binding;
@@ -191,11 +189,11 @@
     }
     
     public String getNickname() {
-    	return nickname;
+        return nickname;
     }
     
     public void setNickname(String nickname) {
-    	this.nickname = nickname;
+        this.nickname = nickname;
     }
 
     public XMPPConnection getConnection() throws XMPPException {
@@ -239,8 +237,7 @@
                 connection.loginAnonymously();
             }
 
-            // now lets send a presence
-            connection.sendPacket(new Presence(Presence.Type.AVAILABLE));
+            // presence is not needed to be sent after login
         }
         return connection;
     }



Mime
View raw message