Skip to content
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="&lt;dummy/&gt;">
					<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="&lt;dummy/&gt;">
</SendMessageJob>
Clone this wiki locally