Search code examples
liferayliferay-6

what are the local-service="true" remote-service="false" in service.xml


Can anyone please elaborate what are the local-service="true" remote-service="false" parameters in service.xml.


Solution

  • local-service="true" This will create classes to access your services within the same JVM.

    remote-service="true" This will create classes to access your services from outside.

    In your case (local=true;remote=false) - you will be able to call the services in your portlet (or the whole portal, depends on how you set them up), but won't be able to call them from outside (for example from some SOAP client or a mobile application, etc).