
Originally Posted by
Mark Fisher
Can you briefly describe the triggering situation for your particular app... ie. when the query should be executed?
Thanks for the quick reply.
I am polling a file directory for files and based on the file name have to check whether these exist in a database based on which i have to continue further processing in the workflow.
Code:
<int-file:inbound-channel-adapter id="inputPublicationFiles"
directory="someRemoteDirectory" auto-create-directory="false"
filename-pattern="*.somepattern">
<int:poller id="poller" fixed-rate="1000"></int:poller>
<!-- just the filenames -->
<int:transformer input-channel="inputPublicationFiles"
expression="payload.name" output-channel="processPublicationFiles"></int:transformer>
<int-jdbc:outbound-gateway request-channel="processPublicationFiles" query="select 'fileName' from someTable" reply-channel="processedPublicationFiles" data-source="dataSource"
update="required ..?"></int-jdbc:outbound-gateway>