[JDEV] Presence and Subscription Question and setting this properly

Mike Prince mike at mikeprince.com
Fri Nov 22 19:28:04 CST 2002


I'm new to this, but here's my college try ;)

- Each user has a roster of people it "cares" about.  A client program
connects to Jabber, reads this roster, and then (most of the time) sends
presence information to everyone in the roster.
- Presence merely flows through Jabber, it's a client job
- You could intercept all the presence events, and then use that data to
build a list
of people on line.  You could then update all their rosters using <xdb>,
also push the roster information to each client, and then let the
clients take charge of the presence stuff

Sounds kind of kludgy.  Perhaps someone more knowledgeable of the Jabber
bowels can suggest a better path.

Thanks,

Mike 

> -----Original Message-----
> From: jdev-admin at jabber.org [mailto:jdev-admin at jabber.org] On 
> Behalf Of Adrian Brown
> Sent: Friday, November 22, 2002 3:23 PM
> To: jdev at jabber.org
> Subject: [JDEV] Presence and Subscription Question and 
> setting this properly
> 
> 
> I'm developing a shared editor client that uses the Jabber Protocol.
> 
> Using:
> 
> JabberBeans Java library
> Jabber Server on my Macintosh OSX (testing purposes)
> 
> Is there a way that I can set the presence for any user 
> connected to my 
> server that will automatically subscribe to whoever is 
> registered or I 
> guess logged into the server, so that they can communicate freely and 
> not ask to be subscribed?  Have I missed something fundamental in my 
> design here?  I'm going to include a list or Roster that 
> shows everyone 
> who is currently online and connected to the server - Is that the way 
> around it?
> 
> Cheers :)
> 
> 
> Adrian





More information about the JDev mailing list