How to make your File Adapter pick only one file at a time from a location

Posted by anirudh.pucha(at)oracle.com on Oracle Blogs See other posts from Oracle Blogs or by anirudh.pucha(at)oracle.com
Published on Mon, 17 Jan 2011 10:06:11 +0000 Indexed on 2011/01/17 10:56 UTC
Read the original article Hit count: 567

In SOA 11g, you use File adapter to read files from the given location.
With this read operation it picks all the files at time.

You want to configure File Adapters that it should pick one file at time from the given location with given polling interval.

Solution :

You set the "SingleThreadModel" and "MaxRaiseSize" properties for your file adapter.
Edit the adapter's jca file and add the following properties:

property name="SingleThreadModel" value="true"
property name="MaxRaiseSize" value="1"

You can set these properties also through jdeveloper, by opening composite.xml, selecting the adapter and then changing the properties through the properties panel.

© Oracle Blogs or respective owner

Related posts about File Adapter;one file;polling;SOA 11g;location