Question: Why File Adapter is used in SOA Suite tool ?.
Answer: File adapter is used to read and write file from and to local system.
Question: Why FTP Adapter is used in SOA Suite tool ?.
Answer: FTP adapter is similar to File adapter with one difference that this adapter is used to read/write the file from/to remote system.
Question: What all differences we have between File and FTP adapters.
Answer: Following are the major differences between File and FTP adapter.
1. It is used to deal with local systems only.
2. Do not require any configuration to make this adapter work.
1. It is used to deal with remote systems.
2. Outbound Connection Pool needs to be configured with FTP details to make this adapter work.
Question: File & FTP adapters are known and Transactional or Non-Transactional adapters?.
Answer: These adapters are known as non-transactional adapters as these adapters does not support transactions.
Question: Can we read flat files using these adapters?.
Answer: yes, we can read both Flat and XML files using these adapters.
Question: Do we have support for multiple directories in File & FTP adapter ?
Answer: Yes, we can specify more than one directory for these adapters. This is applicable to both physical and logical directories.
Question: What is difference between Physical and Logical Directory ?.
Answer: Below are the major differences between Physical and Logical paths.
1. As name suggest, we mention actual full path (physical) of directory
2. Not Flexible
3. We need to manual change this when difference environments has different paths
1. Here we can mention any logical name and actual value of that path define in Composite.xml file.
2. Flexible as we can change it from EM console.
3. We can easily replace this path with the help of Config plan if we have difference paths in different environments.
Question: What all operations we can perform in these adapters ?.
Answer: We can perform following operations in File and FTP adapters.
1. Read file
2. Write File
3. Sync Read
4. List Files
Question: What is the difference between Read and Sync Read operation ?.
Answer: We go for Read operation when we need to perform polling i.e. our process start with polling for file and Sync Read operation is used when you need to read the file in between the flow .
Question: Can we read the file without reading its content?.
Answer: Yes, we can read the file without reading its content by selecting “Do not read file content” check box.
Question: How we read large files using these adapters?.
Answer: We can use streaming option to read large files using these adapters. We can also read the files in attachment form.
Question: Can we append to existing file using these adapters?.
Answer: Yes, we can append to existing file using these adapters.
Question: What is minimum file age property ?.
Answer: This property is used to ensure proper hand shaking, by using this property we can ensure that we read only that file that are completely written by clients, we don’t read incomplete files. e.g. If we set this property value as 2 minutes, adapter will only read that files that are 2 minutes older in that folder.
Question: What is Trigger file option?
Answer: By default, polling by inbound Oracle File and FTP Adapters start as soon as the endpoint is activated. However, if you want more control over polling, then you can use a file-based trigger. Once the Oracle File or FTP Adapter finds the specified trigger file in a local or remote directory, it starts polling for the files in the inbound directory.
For example, a BPEL process is writing files to a directory and a second BPEL process is polling the same directory for files. If you want the second process to start polling the directory only after the first process has written all the files, then you can use a trigger file. You can configure the first process to create a trigger file at the end. The second process starts polling the inbound directory once it finds the trigger file.
Question: What is Native format ?.
Answer: Native format means, we read the file in opaque format, we do not convert it to XML format from its original format.
Question: Can we change the file name and directory path at runtime ?.
Answer: yes, we can change the file name and directory path at run time, for that open the Invoke activity used to invoke file/ftp adapter then go to Properties tab and update the following properties for the same.
Question: What will be output for file list operation?.
Answer: File List operation shows that what all files are available in the specified folder and also show file name, file size and time stamp of each file.