Fórum

Is it possible to put cron expression for my job in portal-ext.properties?

Mikhail Shubenok, modificado 11 Anos atrás.

Is it possible to put cron expression for my job in portal-ext.properties?

New Member Postagens: 8 Data de Entrada: 19/11/12 Postagens Recentes
have a cron job
    <portlet>
    <portlet-name>scheduled-actions</portlet-name>
    <scheduler-entry>
        <scheduler-event-listener-class>com.example.Example</scheduler-event-listener-class>
        <trigger>
            <cron>
                <cron-trigger-value>0/15 * * * * ?</cron-trigger-value>
            </cron>
        </trigger>
    </scheduler-entry>
    <system>true</system>
</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
thumbnail
Hitoshi Ozawa, modificado 11 Anos atrás.

RE: Is it possible to put cron expression for my job in portal-ext.properti

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Not unless you modify liferay.

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