-
Notifications
You must be signed in to change notification settings - Fork 79
SendMessageJob
BonnoSmeele edited this page Oct 15, 2024
·
4 revisions
This particular job sends a dummy message to an adapter according to the cron schedule. The locker object ensures the adapter is only executed once across multiple systems by using a database object. The message property will be the input for the adapter. If you want to send an xml message, you need to escape it.
<SendMessageJob name="Trigger_NotifyActivityExtractUpdate_1"
cronExpression="${NotifyActivityExtractUpdate_1.starter.cron}"
javaListener="NotifyActivityExtractUpdate_1"
description="Trigger NotifyActivityExtractUpdate_1 hourly"
message="<dummy/>">
<locker objectId="Trigger_NotifyActivityExtractUpdate_1"/>
</SendMessageJob>
You an also use an interval(milliseconds) instead of a cronjob. A value of "0" for interval will execute the job once after startup.
<SendMessageJob name="StartVersionlogger"
interval = "${versionlogger.interval}"
javaListener="VersionloggerListener"
description="Triggers the VersionloggerListener interval based"
message="<dummy/>">
</SendMessageJob>