留言板

schedule jobs without a portlet

Morad Ahmad,修改在8 年前。

schedule jobs without a portlet

Junior Member 帖子: 71 加入日期: 10-6-16 最近的帖子
For runing jobs periodically I normally add an entry in liferay-portlet.xml like:

<portlet>
...
<scheduler-entry>
<scheduler-event-listener-class>de.kanaaneh.portango.jobs.UpdateLayoutTitles</scheduler-event-listener-class>
<trigger>
<cron>
<cron-trigger-value>0 42 14 ? * *</cron-trigger-value>
</cron>
</trigger>
</scheduler-entry>
...
</portlet>

That's do the job, however the job doesn't really "belongs" to any portlet. Where else can I define such jobs, which I want to run periodically within a portal?

Thank you,
Morad.
thumbnail
David H Nebinger,修改在8 年前。

RE: schedule jobs without a portlet

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
The only way to deploy a scheduled task is through a portlet plugin, whether the task is really associated with the portlet or not.