Hi to everyone.
I want to integrate OpenFire and SparkWeb with one website.
In the website a user can see a list of the other user that logged in the site.
I want a user to be able to click on other user of the list. After that I want this 2 user to be able to chat together.
Of course one of the users can click on another one, and I want this new couple to be able to chat. And so on.
One user can only chat with another user at a time (2 people char rooms)
And don’t want the users to invite o accept the invitations of other users.
What I do is the following: when a user clicks on another one, I create the couple writing the appropriates records on the tables jiveRoster and jiveRosterGroups. The problem is that if a user already have the SparkWeb opened, doesn’t see his new friends (the one I’ve just created)
Any ideas to solve the problem?
Excuse me for this long post and for my English (is not my mother tongue).
Thanks in advance, Miguel Angel
Hello again.
I’ll try to explain my post more clearly.
The situation:
I have a website in wich I want to intregrate Openfire an SparkWeb.
When a user clics on other user, programatically I create this 2 users as buddys (writing the apropieate records in tables jiveRoster and jiveRosterGroup)
That works fine. The problem is that if one of the buddys has already opened SparkWeb before creating the buddys, the other buddy does not apper in his friends list.
¿is there any way of telling SparkWeb to check periodically if there is any change int the friend list? Actually SparkWeb checks the presence table to check whether a user is on line or is off line.
Thaks in advance.
masegui wrote:
When a user clics on other user, programatically I create this 2 users as buddys (writing the apropieate records in tables jiveRoster and jiveRosterGroup)
That works fine.
Are you manually modifying Openfire’s database to update the users’ rosters? SparkWeb, as an XMPP client, responds to roster-related XML packets to keep its contact list up to date. It has no way of knowing if the server’s database was hacked in such a manner (not until Openfire is forced to reread those rosters from the database and sends the roster to SparkWeb).
Armando