Hi,
I need a source endpoint that regularly places an xml message onto a channel (eg to call a web service and process the results at regular intervals).
Currently I'm doing this using an inbound file adapter ie
But this seems a bit of a hack - particularly the way I can't use the filter attribute in the inbound-channel-adapter since this automatically applies the AcceptOnceFileListFilter which I don't want.Code:<si-file:inbound-channel-adapter id="timer_msg_file" directory="file:D:\test\timer_message" filter="myfilter"> <poller max-messages-per-poll="1"> <interval-trigger interval="3" time-unit="SECONDS"/> </poller> </si-file:inbound-channel-adapter> <si-file:file-to-string-transformer input-channel="timer_msg_file" output-channel="test_channel" delete-files="false"/> <beans:bean id="myfilter" class="org.springframework.integration.file.PatternMatchingFileListFilter"> <beans:constructor-arg value="MyRequest.xml"/> </beans:bean>
Is this the best way to do this for now and are there any plans to provide a better alternative? Ideally a quartz source endpoint (allowing database definition of jobs) would be nice but even a simpler one that allows you to easily specify the payload (xml would be a specific case) and interval would be better.
Thanks for any help
Dave


Reply With Quote
. 