[jdev] Adding Contacts to other rosters

Erich Buri buri at z17.net
Thu Oct 14 05:57:26 CDT 2004


Hello,

I would like to connect several devices together using XMPP. Now, in 
order to be able to say which devices should talk to each other, I 
wanted to "connect" them by putting they're JID's on they're rosters.

How could I add contacts to the roster of a device? I was thinking about 
accessing directly the sm_db. (I'use jabberd2 with Berkeley-DB as 
storage-system). But it looks pretty complicated because the storage 
system is very generic.

Can I develope a component that directly forges subscription-messages 
and sends them to the Session-Manager.

I can also think about implementing a logic into the device that tells 
one device to add a certain JID to his roster. But this gets pretty ugly 
when I require that devices somehow veryfi subscription-requests....

Has anybody done something like this before?

regards
erich buri



More information about the JDev mailing list