High Availability Multiple 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. 4-26 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 4–9 The Adapter Configuration Wizard - File Configuration Page Batching option is disabled if Append is chosen in the wizard. In addition, the following error message is displayed if the user specifies a dynamic file naming convention as opposed to a static file naming convention: You can not choose to Append Files and use a dynamic file naming convention at the same time If you are using the Append functionality in Oracle FTP Adapter, ensure that the FTP server supports the APPE command.

4.2.21 Recursive Processing of Files Within Directories in Oracle FTP Adapter

In earlier versions of the Oracle SOA Suite, the inbound Oracle FTP Adapter used the NLST Name List FTP command to read a list of file names from the FTP server. However, the NLST command does not return directory names and therefore does not allow recursive processing within directories. In the 11g release, the Oracle FTP Adapter uses the LIST command, instead. However, the response from the LIST command is different for different FTP servers. To incorporate the subtle differences in results from the LIST command in a standard manner, the following parameters are added to the deployment descriptor for Oracle FTP Adapter: ■ defaultDateFormat : This parameter specifies the default date format value. On the FTP server, this is the value for files that are older. The default value for this parameter is MMM d yyyy as most UNIX-type FTP servers return the last modified time stamp for older files in the MMM d yyyy format. For example, Jan 31 2006. You can find the default date format for your FTP server by using the ls -l command by using a FTP command-line client. For example, ls -l on a vsftpd server running on Linux returns the following: -rw-r--r-- 1 500 500 377 Jan 22 2005 test.txt