Saturday, March 7, 2015

Oracle SOA suite - File Adapter - Read File info without content

Introduction


Reading files using SOA Suite is very easy as the file-adapter is a powerful adapter. There may scenario where we just need to read file info without file content. In this blog we will see how to read file info without file content.




 Implementation the SOA Composite

  • Create SyncFileRead  composite
  • Add a File adapter to the “exposed services” swimlane, name it “ReadFileInfo”, Next
  • Interface “Define from operation and schema”, Next
  • Operation type “Read” and select “Do not use file content”, Next 

 

 

Choose input file folder 
 
Choose input file pattern
 
Choose polling frequency  and finish the wizard
 
Sync read BPEL process
 
 
Click on receive activity
 
 
Click on properties tab,  add two properties to  get  jca.file.FileName and jca.file.Directory from the adapter.  
Complie and deploy this process on SOA server.

Run Composite


Put any xml file inside input folder , in my case it is C:\Test\file\in

  
After the polling interval, you’ll see an instance for the the composite. You can see file name and directory path for the input file.

 

In next blog we will see how to process large files through SOA Suite using Synchronous File Read.

1 comment:

  1. I have found that this site is very informative, interesting and very well written. keep up the nice high quality writing Business Process Management Examples

    ReplyDelete