Wednesday, August 8, 2012

Liferay Hook Execution Order

a-hook and b-hook, both are extending com.liferay.portal.kernel.events.Action in order to make sure that always B-hook is called after the A-hook, the below configuration  liferay-plugin-package.properties of a-hook is required

required-deployment-contexts=\a-hook

Changing the Time zone in Liferay Tomcat Server

Set the system variable to CATALINA_OPTS=-Duser.timezone=America/Chicago
You can also specify the CATALINA_OPTS in the $TOMCAT_HOME/bin/catalina.sh or %TOMCAT_HOME%\bin\catalina.bat file as well.