Wednesday 3 February 2016

Interview question for File and FTP Adapter

1) Why File Adapter is used in SOA Suite tool ?.
 File adapter is used to read and write file from and to local system.
2) Why FTP Adapter is used in SOA Suite tool ?.
FTP adapter is similar to File adapter with one difference that this adapter is used to read/write the file from/to remote system.
3) What all differences we have between File and FTP adapters.
 Following are the major differences between File and FTP adapter.
File Adapter1. It is used to deal with local systems only.
2. Do not require any configuration to make this adapter work.
FTP Adapter1. It is used to deal with remote systems.
2. Outbound Connection Pool needs to be configured with FTP details to make this adapter work.
4) File & FTP adapters are known and Transactional or Non-Transactional adapters?.
 These adapters are known as non-transactional adapters as these adapters does not support transactions.
5) Can we read flat files using these adapters?.
 yes, we can read both Flat and XML files using these adapters.
6) Do we have support for multiple directories in File & FTP adapter ?
 Yes, we can specify more than one directory for these adapters. This is applicable to both physical and logical directories.
7) What is difference between Physical and Logical Directory ?.
 Below are the major differences between Physical and Logical paths.
Physical Path
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
Logical Path
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.
 What all operations we can perform in these adapters ?.
8) Why File Adapter is used in SOA Suite tool ?.
 File adapter is used to read and write file from and to local system.
9) Why FTP Adapter is used in SOA Suite tool ?.
 FTP adapter is similar to File adapter with one difference that this adapter is used to read/write the file from/to remote system.
10) What all differences we have between File and FTP adapters.
 Following are the major differences between File and FTP adapter.
File Adapter
1. It is used to deal with local systems only.
2. Do not require any configuration to make this adapter work.
FTP Adapter
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.
11) File & FTP adapters are known and Transactional or Non-Transactional adapters?.
 These adapters are known as non-transactional adapters as these adapters does not support transactions.
12) Can we read flat files using these adapters?.
 yes, we can read both Flat and XML files using these adapters.
13) Do we have support for multiple directories in File & FTP adapter ?
 Yes, we can specify more than one directory for these adapters. This is applicable to both physical and logical directories.
14) What is difference between Physical and Logical Directory ?.
Below are the major differences between Physical and Logical paths.
Physical Path
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
Logical Path1. 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.
15) What all operations we can perform in these adapters ?.We can perform following operations in File and FTP adapters.
1. Read file
2. Write File
3. Sync Read
4. List Files
16) What is the difference between Read and Sync Read operation ?.
 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 .
17) Can we read the file without reading its content?.
 Yes, we can read the file without reading its content by selecting “Do not read file content” check box.
18)How we read large files using these adapters?.
 We can use streaming option to read large files using these adapters. We can also read the files in attachment form.
19) Can we append to existing file using these adapters?.
 Yes, we can append to existing file using these adapters.
20) What is minimum file age property ?.
 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.
21) What is Trigger file option?
 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.
22) What is Native format ?.
 Native format means, we read the file in opaque format, we do not convert it to XML format from its original format.
23) Can we change the file name and directory path at runtime ?.
 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.
jca.file.FileName/jca.ftp.FileName
jca.file.Directory/jca.ftp.Directory
24) What will be output for file list operation?.
 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.
We can perform following operations in File and FTP adapters.
1. Read file
2. Write File
3. Sync Read
4. List Files
25)What is the difference between Read and Sync Read operation ?.
 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 .
26)Can we read the file without reading its content?.
 Yes, we can read the file without reading its content by selecting “Do not read file content” check box.
27) How we read large files using these adapters?.
 We can use streaming option to read large files using these adapters. We can also read the files in attachment form.
28) Can we append to existing file using these adapters?.
 Yes, we can append to existing file using these adapters.
29) What is minimum file age property ?.
 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.
30) What is Trigger file option?
 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.
31) What is Native format ?.
 Native format means, we read the file in opaque format, we do not convert it to XML format from its original format.
32) Can we change the file name and directory path at runtime ?.
 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.
jca.file.FileName/jca.ftp.FileName
jca.file.Directory/jca.ftp.Directory
33)What will be output for file list operation?.
 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.

No comments:

Post a Comment