Si creamos un servicio en un portlet y necesitamos invocar a sus métodos desde una plantilla de Velocity, podemos utilizar lo siguiente:
#set ($customPortletLocalService = $serviceLocator.findService("custom-portlet", "com.liferay.custom.service.CustomPortletLocalService"))
Parámetros:
- Contexto del portlet
- Clase del servicio a invocar
Nada más por hoy, otro día más y mejor!