[JDEV] Multi-logins on the same Connection
David Waite
dwaite at jabber.com
Wed Jan 10 16:31:56 CST 2001
Howdy - I assume this is a jabberbeans question because of ConnectionBean :)
You cannot have two client sessions over a single socket with the Jabber protocol,
and that is also the reason why I made it possible to have multiple ConnectionBeans.
As far as the transports are concerned - I've always been a bit iffy on how the
server handles presence. As far as I can suspect, the server maintains a list of who
knows your online status within its in-memory copy of your roster (or some other data
structure). In the current system, you would probably need to send presence to each
entry in your roster in order to selectively pick who doesn't get to know you are
'available'. The transports use presence as the mechanism for logging you in
automatically.
This is a problem that definately needs to be solved for portable/bandwidth-limited
clients (so that people can be selectively authorized to see the existance of your
cellphone paging resource, for example) , so if anyone has proposals I'd love to
start hashing through ideas for a potential server extension :)
-David Waite
Kevin Limperos wrote:
> Hi,
> Does anyone know if it is possible to login two or more users via the same
> connection - or must I instantiate a connection bean for each user? After
> the first user successfully logs in, when I try the second authentication
> request, the server replies with: <error code="404">Not Found</error>.
> Also, if a JabberID is associated with two transports, is there a way to
> selectively login to one transport, but not the other with IQAuth?
> Thank you.
>
> -Kevin
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
More information about the JDev
mailing list