Deploying with JDeveloper Oracle FTP Adapter Dynamic Synchronous Read

4-204 Oracle Fusion Middleware Users Guide for Technology Adapters 1. Create an application server connection. For more information, see Section 2.7, Creating an Application Server Connection for Oracle JCA Adapters. 2. Deploy the application. For more information, see Section 2.8, Deploying Oracle JCA Adapter Applications from JDeveloper.

4.5.10.7 Monitoring Using Fusion Middleware Control Console

You can monitor the deployed SOA composite using Fusion Middleware Control Console. Perform the following steps:

1. Navigate to http:servername:portnumberem. The composite you

deployed appears in the application navigator.

2. Copy the address-csv.txt file to the input directory see

Section 4.5.10.1, Prerequisites for the location of this file and ensure it gets processed. Check the output directory to ensure that an output file has been created.

3. Click the SOA composite that you deployed. The Dashboard is displayed.

Note your Instance ID in the Recent Instances area.

4. Click the Instances tab. The Instance IDs of the SOA composite are listed.

5. Click the Instance ID that you noted in Step 3. The Flow Trace page is displayed.

6. Click your BPEL process instance. The Audit Trail of the BPEL process instance is

displayed.

7. Expand a payload node to view payload details.

8. Click the Flow tab to view the process flow.

9. Click ReceiveTrigger to display the activity details.

4.5.11 Copying, Moving, and Deleting Files

The Oracle File and FTP Adapters let you copy or move a file from one location to another, or delete a file from the target directory. Additionally, the Oracle FTP Adapter lets you move or copy files from a local file system to a remote file system and from a remote file system to a local file system. This feature is implemented as a interaction specification for outbound services. So, this feature can be accessed either by using a BPEL invoke activity or a Mediator routing rule. At a high level, you must create an outbound service and configure this service with the source and target directories and file names. The following use cases demonstrate the new functionality supported by Oracle File and FTP Adapters that allow you to copy, move, and delete files by using an outbound service: ■ Section 4.5.11.1, Moving a File from a Local Directory on the File System to Another Local Directory ■ Section 4.5.11.2, Copying a File from a Local Directory on the File System to Another Local Directory ■ Section 4.5.11.3, Deleting a File from a Local File System Directory ■ Section 4.5.11.4, Using a Large CSV Source File ■ Section 4.5.11.5, Moving a File from One Remote Directory to Another Remote Directory on the Same FTP Server Oracle JCA Adapter for FilesFTP 4-205 ■ Section 4.5.11.6, Moving a File from a Local Directory on the File System to a Remote Directory on the FTP Server ■ Section 4.5.11.7, Moving a File from a Remote Directory on the FTP Server to a Local Directory on the File System ■ Section 4.5.11.8, Moving a File from One FTP Server to another FTP Server

4.5.11.1 Moving a File from a Local Directory on the File System to Another Local Directory

You can model only a part of this procedure by using the wizard because the corresponding Adapter Configuration Wizard is not available. You must complete the remaining procedure by manually configuring the generated JCA file. You must perform the following steps to move a file from a local directory on the file system to another local directory: 1. Create an empty BPEL process. 2. Drag and drop File Adapter from the Component Palette to the External References swim lane. The Adapter Configuration Wizard Welcome page is displayed.

3. Click Next. The Service Name page is displayed.

4. Enter a service name in the Service Name field.

5. Click Next. The Adapter Interface page is displayed.

6. Select Define from operation and schema specified later, and click Next. The

Operation page is displayed.

7. Select Synchronous Read File, enter FileMove in the Operation Name field, and

then click Next. The File Directories page is displayed. 8. Enter a dummy physical path for the directory for incoming files, and then click Next . The File name page is displayed.

9. Enter a dummy file name, and then click Next. The Messages page is displayed.

10. Select Native format translation is not required Schema is opaque, and then

click Next. The Finish page is displayed. 11. Click Finish. The outbound Oracle File Adapter is now configured. Note: You have selected Synchronous Read File as the operation because the WSDL file that is generated as a result of this operation is similar to the one required for the file IO operation. Note: The dummy directory is not used. You must manually change the directory in a later step. Note: The dummy file name you enter is not used. You must manually change the file name in a later step.