legacy-knowledge-base
公開されました Sep. 10, 2025

BaseMessageListener を拡張するタスク スケジューラが再起動後に機能しない

written-by

Ricardo Couso

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • Liferay にデプロイすると、 BaseMessageListener を拡張するタスク スケジューラ コンポーネントが正しく動作します。
  • ただし、サーバーを再起動すると、タスクは登録されず、実行されません。

Environment

  • ライフレイDXP 7.4、7.3

解決策

  • タスク スケジューラは通常 TriggerFactory および SchedulerEngineHelper を使用してタスクを定義し、登録します。
  • すべての依存関係が開始時に確実に使用できるようにするには、 TriggerFactoryUtil および SchedulerEngineHelperUtilを使用する代わりに、 @Reference to TriggerFactory および SchedulerEngineHelper使用してください。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base