Showing posts with label Oracle SOA 11g. Show all posts
Showing posts with label Oracle SOA 11g. Show all posts

Saturday, March 7, 2015

Oracle SOA Suite - BPEL/BPM - Enable/Disable payload validations

Introduction


Sometimes in development phase, its good idea to validate all the input payload to BPEL and BPM processes. In this way we can  rectify any payload related errors which can occur in later stage of the project.

BPEL/BPM Configuration

 

This can done by configuration settings of BPEL and BPM engine from EM console.

1. Log into EM console
2. Right click on  soa-infra and select SOA Administration -> BPEL Properties



 3. Select Payload Validation and save the changes




4. Repeat above steps for BPM properties



These properties should not be enable in production phase because it degrades soa server performance.

Oracle SOA Suite - File Adapter - Change file adapter properties (JCA) run time

Intoduction

 Some time we have to change file dapter properties like folder name , file filter etc. Either we can do it in Jdeveloper and redeploy the project or we can change it in run time using EM console. Here we will discuss about later approach 

File Adapter Run Time Configuration


1. Login to EM Console 

2. Select SOA project in which file adapter is used

3.  Select file adapter under Services and References tab 

 

4. Click on properies tab


Here we can change the file adapter jca properties. After the changes, click on apply button and retest you soa project. Now, file adapter will take new configuration changes.

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.