[JDEV] Subscription to presence

Matthias Wimmer m at tthias.net
Wed Jul 24 19:57:58 CDT 2002


Hi Emma!

Emma Willis wrote:

> Please can someone help me - I am having problems using jabberbeans to 
> confirm subscription requests....
>  
> it would really help me if someone could show me an example of a 
> presence subscription in XML, from the side of the person being 
> subscribed to.... see thread below.
>  

You could have a look at the Java Jabber-Client "Swagger" it uses 
JabberBeans.

You can also have a look into the code of my PresenceIndicator in the 
file 
http://devel.amessage.de/cvsweb.cgi/JabberIndicator/backend/net/mawis/jabber/indicator/JabberPacketHandler.java?rev=1.1.1.1&content-type=text/x-cvsweb-markup 
look at the function receivedPresence(Presence pp) at if 
(type.equals("subscribe") && jid != null).


Tot kijk
   Matthias

-- 
Fon: +49-700 77007770		http://matthias-wimmer.de/
Fax: +49-89 312 88654		jabber://mawis@charente.de





More information about the JDev mailing list