Liferay is a Gartner Magic Quadrant Leader for the Sixth Year! Find out why

Combination View Flat View Tree View
Threads [ Previous | Next ]
Abhi Ed
creating hook for StartupAction in liferay
November 7, 2012 10:02 PM

Abhi Ed

Rank: Regular Member

Posts: 118

Join Date: June 4, 2012

Recent Posts

Hello friends ,

I have a requirement to create a hook for StartupAction for adding a custom field to User table in liferay .
But, i have only created hooks with jsp files. Can anyone tell me the steps for creating hook in this case ?
And where can I find that file StartupAction .java ?

Antoine Comble
RE: creating hook for StartupAction in liferay
June 14, 2013 1:31 PM

Antoine Comble

Rank: Regular Member

Posts: 226

Join Date: September 7, 2012

Recent Posts


You can override this properties in :
 2# Global startup event that runs once when the portal initializes.
 7# Application startup event that runs once for every web site instance of
 8# the portal that initializes.

After doing this, you create a class like and when liferay starts up, your code will be executed.

To hook, in your liferay-hook.xml add this :

The, create a file in project classpath and should be work.