camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Chekan (JIRA)" <j...@apache.org>
Subject [jira] Created: (CAMEL-712) Xmpp private chat does not work
Date Sat, 12 Jul 2008 19:55:00 GMT
Xmpp private chat does not work
-------------------------------

                 Key: CAMEL-712
                 URL: https://issues.apache.org/activemq/browse/CAMEL-712
             Project: Apache Camel
          Issue Type: Bug
    Affects Versions: 1.4.0
         Environment: xmpp sender: xmpp camel component; account @gmail.com
xmpp receiver: Psi version 0.11; account @jabber.org
            Reporter: Vadim Chekan
            Priority: Critical
         Attachments: patch.txt

This configuration logs in, presence works, but message is not received by the participant.
{code}
		from("timer://kickoff?period=10000&delay=1").
		setBody(constant("xmpp message")).
		to("xmpp://xxxxxxxx@gmail.com/?resource=camel-user&password=xxxxxx&participant=xxxxxxxx@jabber.org");
{code}

It is cause by the code 
{code}message.setFrom(endpoint.getUser());{code}

1. There is no need to set "from" field: smack will fetch this info from the connection info
and will set it up properly.

2. I can't find the link, but according to common sence and examples in [Instant Messaging
and Presence|http://www.ietf.org/rfc/rfc3921.txt]  "from" should be JID (Jabber ID) and not
just user name!
{quote}
   <message
       to='romeo@example.net'
       from='juliet@example.com/balcony'
       type='chat'
       xml:lang='en'>
     <body>Wherefore art thou, Romeo?</body>
   </message>
{quote}


3. "Normal" message is just a hint to UI that the message is not part of conversation but
a standalone message. It does not matter practically but ideologically  xmpp component will
send messages as they flow and I'd say it is a conversation (or monologue to be precise).
So no need to set "Normal" flag either. Smack will set it to the default "chat" type.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message