Forums de discussion

Portlet Available to only one User at a Time

Philip Teagle, modifié il y a 7 années.

Portlet Available to only one User at a Time

New Member Publications: 19 Date d'inscription: 28/07/10 Publications récentes
I have a custom Vaadin 7 portlet that uses the UserLocalServiceUtil and RoleLocalServiceUtil class to add users in the context of a specific application. It works fine and adds a user with the minimum required information without using the Liferay Control Panel, which is horridly slow. However, when the portlet is placed on a page, and two users are logged in accessing the same page, the portlet will only show for one of the users. It is as if there is a lock on the portlet due to use of the UserLocalServiceUtil class. I tried making the portlet instance able, but no luck. Any suggestions?
Philip Teagle, modifié il y a 7 années.

RE: Portlet Available to only one User at a Time

New Member Publications: 19 Date d'inscription: 28/07/10 Publications récentes
Liferay 6.2 GA2 by the way.
thumbnail
Olaf Kock, modifié il y a 7 années.

RE: Portlet Available to only one User at a Time

Liferay Legend Publications: 6396 Date d'inscription: 23/09/08 Publications récentes
Philip Teagle:
... It is as if there is a lock on the portlet due to ...


Do you, by any chance, have any member variables in the portlet class itself? This sounds a lot like an implementation error and I can imagine that using the same member variable is one way to get this effect. UserLocalService etc. are most likely not the issue - you can call them in parallel as much as you like.