Using file adapter I have an inbound channel polling at fixed rate reading the files from a directory, filtering certain files and finally sorting them and sending them to the outbound gateway which again moves the files for processing by a service bean.
<bean id="baseDirectory" class="java.lang.String">
<constructor-arg value="${HOME}/user/files/"/>
</bean>
<file:inbound-channel-adapter id="testFiles" directory="#{baseDirectory}" filename-regex="^(test_filename.*)-(\d+)\.csv" comparator="someFileOrderComparator">
<int:poller fixed-rate="6000"/>
</file:inbound-channel-adapter>
<file:outbound-gateway request-channel="testFiles" reply-channel="testFile" directory="#{baseDirectory}/processing" delete-source-files="true”/>
<int:service-activator input-channel="testFile" ref="someServiceTask" method="executeTask”/>
This is an example of how we can read files from a file system.
Suppose I want to read the files from an Azure blob storage, say I have a container X which contains folder A. Using account name and account access key how can I tell spring Integration to read the files from folder A of container X.
XML configuration preferred.