I have implemented a functional Liferay service using service builder and I want to call a method on the -LocalServiceUtil
class just as soon as I possibly can. This is a task I wish to perform when the service starts and also when the service is redeployed.
Even though all the methods on the -LocalServiceUtil
class are static, they will throw a BeanLocatorException
if they are called too soon.
com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator has not been set for servlet context portal-navigation-impl
Is there any way to call a method on the -LocalServiceImpl
instance or otherwise so that I can do this?
Thank you