1. *ServiceUtil checks permissions and *LocalServiceUtil does not.
2. You can only use the UserLocalServiceUtil from the same VM; the UserServiceUtil is
for remote calls and thus adds the extra permission checking.
3. You use UserServiceUtil for remote calls (as a web service) and UserLocalServiceUtil
for calls inside the same VM. If you want, you can disable the generation of
the remote methods in the service builder with the parameter local-service="true"
remote-service="false"
No comments:
Post a Comment