[jdev] Resource-to-Resource Messaging and priorities

Alexey Nezhdanov snake at penza-gsm.ru
Thu Nov 10 04:51:56 CST 2005


В сообщении от Четверг 10 Ноябрь 2005 13:42 Roel Spruit написал(a):
> Hi Folks,
>
> I'm developing a limited xmpp client that is meant to communicate with
> another
> xmpp client...that I'm also building (yeah, busy busy). These two clients
> will
> be logged on at the same jabber server, under the same name, but each under
> a different resource.
>
> My problem: I can send a message from client1 to client2, and it arrives as
> expected,
> with the client1 resourcename as the sender. However, when I reply to this
> message,
> the reply ALSO arrives at client2, and not at client1.
>
> I figured this was a priority problem, but it doesn't seem to be, with
> client1 at the maximum
> priority it still fails.
>
> Can anybody help me with this problem?
To deliver message to a specific resource you should specify this resource.
I.e. ensure that your outgoing packet contains not bare JID
to="user at host"
but full JID:
to="user at host/specific resource"


> Regards,
>
> Roel Spruit

-- 
Respectfully
Alexey Nezhdanov




More information about the JDev mailing list