Tuesday, March 15, 2011

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

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.

2 comments:

  1. Hi Sudhakar,
    when deploying a bpel process that contains a file adapter on unix server how can we give the physical path in file adapter.
    can you please give me a detailed explanation.
    Regards,
    venkat.apps2fusion@gmail.com

    ReplyDelete
  2. Hi Sudhakar,

    Can you please tell me how to set above said properties regarding the file adapter in case of sync read operation type?
    Please also tell me how to create a trigger file in case of read operation of File adapter in soa 11g?

    ReplyDelete