Forums

Home » Liferay Portal » Pусский

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Mikhail Shubenok
Is it possible to put cron expression for my job in portal-ext.properties?
November 19, 2012 3:29 AM
Answer

Mikhail Shubenok

Rank: New Member

Posts: 7

Join Date: November 19, 2012

Recent Posts

have a cron job
 1    <portlet>
 2    <portlet-name>scheduled-actions</portlet-name>
 3    <scheduler-entry>
 4        <scheduler-event-listener-class>com.example.Example</scheduler-event-listener-class>
 5        <trigger>
 6            <cron>
 7                <cron-trigger-value>0/15 * * * * ?</cron-trigger-value>
 8            </cron>
 9        </trigger>
10    </scheduler-entry>
11    <system>true</system>
12</portlet>

Is it possible to put this cron expression (0/15 * * * * ?) in portal-ext.properties from liferay-portlet.xml? And how to retrive it here if it is?
Thanks
Hitoshi Ozawa
RE: Is it possible to put cron expression for my job in portal-ext.properti
November 19, 2012 3:48 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Not unless you modify liferay.

BTW, if you are going to ask question in English, please post your question to the English forum.