powered by Jive Software

Buddy search

Is it possible to search for particular buddy on a Jabber server ?


We currently don’‘t support a mechanism for searching a user directory and it’‘s not in our immediate roadmap. You can easily implement this feature (with some work). If you are willing to do this you’'ll have to take a look at two JEPS: http://www.jabber.org/jeps/jep-0055.html and http://www.jabber.org/jeps/jep-0004.html. Let us know if you need any help.


– Gato

Thanks for the pointers, I will post back after implementing or for any assistance.

Dear Gato

I would appreciate knowing the broad steps that one has to take to try an implement a JEP on Smack. This may ease things out for a lot of users.



Sorry for the late reply. Since the JEPs are extensions to the XMPP protocol we decided to put them in a separate package. You can find all the implemented JEPs under the packages org.jivesoftware.smackx.*.

To implement a JEP you will need to:

. Create your IQProvider or PacketExtensionProvider to manage packages for a given namespace

. Register your provider in the file smack.providers

. Create your IQ subclass or PacketExtension under org.jivesoftware.smackx.packet

. Build a nice facade to ease the integration of the new extension with Smack (we normally put this classes under org.jivesoftware.smackx)

In your case I’'d start first with JEP55 and then proceed with JEP4.


– Gato