Fórum

How to start and stop liferay schedular manually without changing code

Pradeep Mishra, modificado 7 Anos atrás.

How to start and stop liferay schedular manually without changing code

New Member Postagens: 7 Data de Entrada: 21/09/16 Postagens Recentes
Hi,
I have created a liferay schedular by making entry in liferay-portlet.xml like below

<scheduler-entry>
<scheduler-event-listener-class>com.hpe.cpx.scheduler.EprimeMessageListner</scheduler-event-listener-class>
<trigger>
<simple>
<property-key>15</property-key>
<time-unit>minute</time-unit>
</simple>
</trigger>
</scheduler-entry>

and implemented " MessageListener " class and deployed to server.My schedular is up and ruuning fine every 15 mins.


Is there any way to start and stop this schedular manually (may be via control panel).

Thanks,
Pradeep
thumbnail
Juan Gonzalez, modificado 7 Anos atrás.

RE: How to start and stop liferay schedular manually without changing code

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
You could benefit from this plugin in Marketplace: https://web.liferay.com/marketplace/-/mp/application/35025281
Pradeep Mishra, modificado 7 Anos atrás.

RE: How to start and stop liferay schedular manually without changing code

New Member Postagens: 7 Data de Entrada: 21/09/16 Postagens Recentes
Thanks for the reply!
For this i have to install new plugin.Is there any way without installing new one like if we can write something in our portlet plugin itself.

Regards,
Pradeep
thumbnail
Juan Gonzalez, modificado 7 Anos atrás.

RE: How to start and stop liferay schedular manually without changing code

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
Pradeep Mishra:
Thanks for the reply!
For this i have to install new plugin.Is there any way without installing new one like if we can write something in our portlet plugin itself.

Regards,
Pradeep


In the link I've provided from that Marketplace plugin you have other link to source code. You can just see how it's being done ;-).