Foren

XMPP - Screennames for Account ID's rather than userId

thumbnail
Glenn Powell, geändert vor 15 Jahren.

XMPP - Screennames for Account ID's rather than userId

Junior Member Beiträge: 43 Beitrittsdatum: 08.01.08 Neueste Beiträge
I've been trying to solve a problem that we've been running into regarding synchronization between our XMPP Openfire server database, and our Liferay database.

Currently, we are still in development, so we are constantly blowing away and rebuilding our Liferay database with new data. This sometimes causes the userId's of our initial test users to change from one iteration to the next. Which in turn causes them to have new XMPP accounts created with that new userId, and then block them from access to their old accounts.

I do see that this shouldn't be the case in a production environment since the database shouldn't be rebuilt regularly, however, I do find it odd that the use of the userId attribute is hardcoded into the portal framework. This could potentially cause headaches if a database restructuring were in fact needed.

There is the possibility to change the LoginPostAction.java in EXT so that it calls:

MessagingUtil.createXMPPConnection(ses, user.getScreenName());


instead of

MessagingUtil.createXMPPConnection(ses, user.getUserId());


However, the use of the userId is scattered throughout the MessagingUtil.java file in the portal core, such as in the addRosterEntry method.
Was there a reason that the userId was especially chosen over the screenName? If not, then might it be possible in a future version to give the EXT developers more control over what is used as the XMPP account ID?
musarath pasha, geändert vor 15 Jahren.

Group Chat

New Member Beiträge: 7 Beitrittsdatum: 26.09.07 Neueste Beiträge
hi,
Presently i am working on the implementation of group chat functionality
in liferay, but i am facing lots of difficulty in doing so, can any one
guide me out, how to do groupchat in liferay.
Thanks in advance

--
Thanks & Regards
MUSARATH PASHA
Baris Sener, geändert vor 14 Jahren.

RE: Group Chat

Expert Beiträge: 278 Beitrittsdatum: 23.06.09 Neueste Beiträge
I'm having the same problem. Any ideas?

Baris
Sarika Nair, geändert vor 14 Jahren.

RE: Group Chat

Junior Member Beiträge: 38 Beitrittsdatum: 06.10.09 Neueste Beiträge
Hi

I'm facing the same problem....someone please guide.. emoticon
Abhijit Roy, geändert vor 12 Jahren.

RE: Group Chat

New Member Beitrag: 1 Beitrittsdatum: 20.06.11 Neueste Beiträge
Group Chat is not supported in Liferay 6.0.6.