[jdev] Detecting multiple resource connections

Justin Karneges justin-keyword-jabber.093179 at affinix.com
Tue Apr 26 16:43:00 CDT 2005


On Tuesday 26 April 2005 02:09 pm, Peter Saint-Andre wrote:
> On Tue, Apr 26, 2005 at 05:35:54PM -0300, Carolina Ardohain wrote:
> > Is there a way to detect multiple resource connections? I want to run
> > a bot that connect to the server but it need to detect if connected
> > with same resource and try to connect again with other.
>
> If you try to log in as a resource and that resource already is logged
> in, most servers will boot the old resource and connect the new one.
>
> It's rather hard to discover if a resource is being used if you're not
> connected. You would need to connect (and thus provide a resource)
> before you could query anything via XMPP. And at that point it is too
> late, no?

Conceivably we could create a query-protocol for this, now that authentication 
and resource binding are separate steps.

On a similar note, even if you don't have a conflicting resource, the only way 
to detect for other resources is to rely on presence.  I think it could be 
useful to be able to detect for your other active logins without needing to 
use xmpp-im.

-Justin



More information about the JDev mailing list