I'm writing an XMPP client in Java using the Smack API.
I registered a roster listener for each user, and the Smack API calls...
public void entriesAdded(Collection arg0) {}
... each time it notices a roster addition.
Does anyone know if this listener will be set off if the database changes but not through the Smack API createEntry() method?
Basically, I want to tie the XMPP client to a website. When you add someone to the website friends list, I want the site to notify the client. Rather than setting up sockets or using PHP to log into the XMPP server, I was hoping that just modifying the database would work.
Will this work or is there another way to handle this without the client constantly polling the database for changes?