camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadrian Zbarcea (JIRA)" <>
Subject [jira] Resolved: (CAMEL-712) Xmpp private chat does not work
Date Sat, 12 Jul 2008 20:39:00 GMT


Hadrian Zbarcea resolved CAMEL-712.

    Fix Version/s: 1.5.0
       Resolution: Fixed

Vadim you're keeping us busy :).  Patch applied with thanks!

> Xmpp private chat does not work
> -------------------------------
>                 Key: CAMEL-712
>                 URL:
>             Project: Apache Camel
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>         Environment: xmpp sender: xmpp camel component; account
> xmpp receiver: Psi version 0.11; account
>            Reporter: Vadim Chekan
>            Priority: Critical
>             Fix For: 1.5.0
>         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://");
> {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|]  "from" should be JID (Jabber ID) and not
just user name!
> {quote}
>    <message
>        to=''
>        from=''
>        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.

View raw message