掲示板

How to start and stop liferay schedular manually without changing code

7年前 に Pradeep Mishra によって更新されました。

How to start and stop liferay schedular manually without changing code

New Member 投稿: 7 参加年月日: 16/09/21 最新の投稿
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
7年前 に Juan Gonzalez によって更新されました。

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

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
You could benefit from this plugin in Marketplace: https://web.liferay.com/marketplace/-/mp/application/35025281
7年前 に Pradeep Mishra によって更新されました。

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

New Member 投稿: 7 参加年月日: 16/09/21 最新の投稿
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
7年前 に Juan Gonzalez によって更新されました。

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

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
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 ;-).