tomcat7 - How can I get Liferay user ID from a external servlet -
i have problem. want liferay user id in servlet runs in tomcat, not in tomcat on liferay runs. if both runs in same tomcat, no problem, liferay api works perfectly. in case, when use 'userlocalserviceutil.decryptuserid' in order decrypt user id present in cookie, 'beanlocator null' exception.
what can do? has solution?
you can consume liferay's web services user details liferay servlet. can choose soap webservices or json webservices.
my recommendation in scenario use json webservice - get-user-by-email-address method (like this: http://<host>:<port>/api/jsonws?signature=/user/get-user-by-email-address-2-companyid-emailaddress
) user object, , userid it.
Comments
Post a Comment