Performance Tuning Performs the required postprocessing, such as deletion or archival after the file

4-24 Oracle Fusion Middleware Users Guide for Technology Adapters

4.2.18 High Availability

The Oracle File and FTP Adapters support the high availability feature for the active-active topology with Oracle BPEL Process Manager and Mediator service engines. It supports this feature for both inbound and outbound operations.

4.2.19 Multiple Directories

The Oracle File and FTP Adapters support polling multiple directories within a single activation. You can specify multiple directories in JDeveloper as opposed to a single directory. This is applicable to both physical and logical directories. After selecting the inbound directory or directories, you can also specify whether the subdirectories must be processed recursively. If you check the Process Files Recursively option, then the directories would be processed recursively. By default, this option is selected, in the File Directories page, as shown in Figure 4–8 . When you choose multiple directories, the generated JCA files use semicolon; as the separator for these directories. However, if you want, you can change the separator to something else. If you do so, manually add DirectorySeparator=chosen separator in the generated JCA file. For example, if you want to use comma , as the separator, you must first change the separator to , in the Physical directory and then add property name=DirectorySeparator value=,, in the JCA file. Additionally, if you choose to process directories recursively and one or more subdirectories do not have the appropriate permissions, then the inbound adapter throws an exception during processing. If you want to ignore this exception, then you must define a binding property with the name ignoreListingErrors in your composite.xml as shown in the following example: service name=FlatStructureIn interface.wsdl interface=http:xmlns.oracle.compcbpeladapterfileFlatStructureInwsdl.inter faceRead_ptt binding.jca config=FlatStructureIn_file.jca property name=ignoreListingErrors type=xs:string many=falsetrueproperty binding.jca service Note: If the inbound Oracle File Adapter is configured for polling multiple directories for incoming files, then all the top-level directories inbound directories where the input files appear must exist before the file reader starts polling these directories. Oracle JCA Adapter for FilesFTP 4-25 Figure 4–8 The Adapter Configuration Wizard - File Directories Page

4.2.20 Append Mode

The Oracle File and FTP Adapters enable you to configure outbound interactions that append to an existing file. The Append to Existing File option allows the outbound invoke to write to the same file. There are two ways in which you can append to a file name: ■ Statically - in the JCA file for the outbound Oracle File Adapter ■ Dynamically - using the header mechanism When you select the Append to existing file option in the File Configuration page, the batching options such as Number of Messages Equals, Elapsed Time Exceeds, File Size Exceeds options are disabled. Figure 4–9 displays the Append to Existing File option. Note: The append mode is not supported for SFTP scenarios, where instead of appending to the existing file, the file is overwritten.