<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to implement Startup Action Hook in LIferay DXP?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=90037678" />
  <subtitle>How to implement Startup Action Hook in LIferay DXP?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=90037678</id>
  <updated>2026-04-04T06:23:44Z</updated>
  <dc:date>2026-04-04T06:23:44Z</dc:date>
  <entry>
    <title>RE: How to implement Startup Action Hook in LIferay DXP?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119639346" />
    <author>
      <name>asif aftab</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119639346</id>
    <updated>2020-07-23T14:32:47Z</updated>
    <published>2020-07-23T14:32:47Z</published>
    <summary type="html">Thank you so much&lt;br /&gt;I will try this</summary>
    <dc:creator>asif aftab</dc:creator>
    <dc:date>2020-07-23T14:32:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to implement Startup Action Hook in LIferay DXP?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119637672" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119637672</id>
    <updated>2020-07-23T13:11:20Z</updated>
    <published>2020-07-23T13:11:20Z</published>
    <summary type="html">An easier solution may be to use an @Activate annotated method. This will run every time the bundle starts so you get it for initial portal startup, deployment, etc.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2020-07-23T13:11:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to implement Startup Action Hook in LIferay DXP?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119635861" />
    <author>
      <name>asif aftab</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119635861</id>
    <updated>2020-07-23T07:47:10Z</updated>
    <published>2020-07-23T07:47:10Z</published>
    <summary type="html">import com.liferay.portal.kernel.events.ActionException;&lt;br /&gt;import com.liferay.portal.kernel.events.LifecycleAction;&lt;br /&gt;import com.liferay.portal.kernel.events.SimpleAction;&lt;br /&gt;import com.liferay.portal.kernel.log.Log;&lt;br /&gt;import com.liferay.portal.kernel.log.LogFactoryUtil;import org.osgi.service.component.annotations.Component;@Component(&lt;br /&gt;        immediate = true,&lt;br /&gt;        property = {&lt;br /&gt;                &amp;#34;key=application.startup.events&amp;#34;&lt;br /&gt;        },&lt;br /&gt;        service = LifecycleAction.class&lt;br /&gt;    )&lt;br /&gt;public class CustomStartupAction extends SimpleAction{    private static final Log _log = LogFactoryUtil.getLog(CustomStartupAction .class);&lt;br /&gt;    @Override&lt;br /&gt;    public void run(String[] ids) throws ActionException {        _log.info(&amp;#34;----------------------------only on startup of server -------------------------------&amp;#34;);&lt;br /&gt;        &lt;br /&gt;    }}</summary>
    <dc:creator>asif aftab</dc:creator>
    <dc:date>2020-07-23T07:47:10Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to implement Startup Action Hook in LIferay DXP?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=90281566" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=90281566</id>
    <updated>2017-06-05T07:47:21Z</updated>
    <published>2017-06-05T07:47:21Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Kushagra Khanna:&lt;/div&gt;&lt;blockquote&gt;I have a requirement where I have to create a hook that invoke &amp;#34;application.startup.events&amp;#34; in Liferay DXP.&lt;br /&gt;How I can implement such hook in Liferay DXP and what are the configuration required for the same.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;You&amp;#39;d go for a lifecycle action. &lt;a href="https://github.com/liferay/liferay-blade-samples/tree/master/liferay-workspace/modules/blade.lifecycle.loginpreaction"&gt;Here&amp;#39;s a sample in a module&lt;/a&gt;. Check the &lt;a href="https://github.com/liferay/liferay-blade-samples/blob/master/README.markdown#logineventspre"&gt;blade-sample readme&lt;/a&gt; for alternative properties, to change it from a login action to another lifecycle action.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2017-06-05T07:47:21Z</dc:date>
  </entry>
  <entry>
    <title>How to implement Startup Action Hook in LIferay DXP?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=90037677" />
    <author>
      <name>Kushagra Khanna</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=90037677</id>
    <updated>2017-05-30T05:25:59Z</updated>
    <published>2017-05-30T05:25:59Z</published>
    <summary type="html">Hi Team,&lt;br /&gt;&lt;br /&gt;I have a requirement where I have to create a hook that invoke &amp;#34;application.startup.events&amp;#34; in Liferay DXP.&lt;br /&gt;How I can implement such hook in Liferay DXP and what are the configuration required for the same.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Kushagra</summary>
    <dc:creator>Kushagra Khanna</dc:creator>
    <dc:date>2017-05-30T05:25:59Z</dc:date>
  </entry>
</feed>
