Foren
How to start and stop liferay schedular manually without changing code
Pradeep Mishra, geändert vor 7 Jahren.
How to start and stop liferay schedular manually without changing code
New Member Beiträge: 7 Beitrittsdatum: 21.09.16 Neueste Beiträge
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
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
Juan Gonzalez, geändert vor 7 Jahren.
RE: How to start and stop liferay schedular manually without changing code
Liferay Legend Beiträge: 3089 Beitrittsdatum: 28.10.08 Neueste Beiträge
You could benefit from this plugin in Marketplace: https://web.liferay.com/marketplace/-/mp/application/35025281
Pradeep Mishra, geändert vor 7 Jahren.
RE: How to start and stop liferay schedular manually without changing code
New Member Beiträge: 7 Beitrittsdatum: 21.09.16 Neueste Beiträge
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
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
Juan Gonzalez, geändert vor 7 Jahren.
RE: How to start and stop liferay schedular manually without changing code
Liferay Legend Beiträge: 3089 Beitrittsdatum: 28.10.08 Neueste BeiträgePradeep 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 ;-).