how to read files from fie adapter after its downtime
We have a inbound file adapter. It will read the files from one source location.
If inbound file adapter was down for some time.
After some time it is up running, meanwhile list of files will be placed in inbound source folder.
The requirement here is, the file adapter has to read the files in the order in which the files written. (means, in FIFO order)
How to fulfill the requirement via file adapter.
Solution:
If inbound file adapter was down for some time.
After some time it is up running, meanwhile list of files will be placed in inbound source folder.
The requirement here is, the file adapter has to read the files in the order in which the files written. (means, in FIFO order)
How to fulfill the requirement via file adapter.
Solution:
We can use the ListSorter File Adapter Configuration property to sort based on timestamp. Basically add the following property to the inbound JCA file:
More info see section 4.2.6 in http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm
<property name="ListSorter"
value="oracle.tip.adapter.file.inbound.listing.TimestampSorterAscending"/>
<property name="SingleThreadModel" value="true"/>
Comments
Post a Comment