Liferay: Servlet and Portlet Initialization Order

I think this was the case that in Liferay 4, if the war contained both a portlet and a servlet, the servlet was initialized before the portlet. Now with Liferay 5, I notice the opposite is happening. How do I configure my web application, or Liferay, to always have servlets initialized before portlets?

0


source to share


1 answer


While Liferay 4 is lazy to load portlets due to performance issues, Liferay 5 aggressively loads portlets when deploying a web application.



So the solution is to initialize the servlet instead of (or in addition to) initialize the servlet to do so when the servlet context listener is initialized, which happens before the portlet is initialized. See Step 1 for more details on these instructions .

0


source







All Articles