Configuring for SFTP Mode

Oracle JCA Adapter for FilesFTP 4-97

4.5 Oracle File and FTP Adapters Use Cases

This section includes the following Oracle File and FTP Adapters use cases: ■ Section 4.5.1, Oracle File Adapter XML Debatching ■ Section 4.5.2, Flat Structure for Oracle BPEL PM ■ Section 4.5.3, Flat Structure for Mediator ■ Section 4.5.4, Oracle File Adapter Scalable DOM ■ Section 4.5.5, Oracle File Adapter ChunkedRead ■ Section 4.5.6, Oracle File Adapter Read File As Attachments ■ Section 4.5.7, Oracle File Adapter File Listing ■ Section 4.5.8, Oracle File Adapter Complex Structure ■ Section 4.5.9, Oracle FTP Adapter Debatching ■ Section 4.5.10, Oracle FTP Adapter Dynamic Synchronous Read ■ Section 4.5.11, Copying, Moving, and Deleting Files

4.5.1 Oracle File Adapter XML Debatching

This is an Oracle File Adapter feature that debatches large XML documents into smaller individual XML fragments. In this use case, the Debatching XML process uses the Oracle File Adapter to debatch an XML file containing a batch of employees occurring in the XML file as repeating nodes. These nodes are then processed and every individual node is written to separate output files. This use case includes the following sections: ■ Section 4.5.1.1, Prerequisites ■ Section 4.5.1.2, Designing the SOA Composite ■ Section 4.5.1.3, Creating the Inbound Oracle File Adapter Service ■ Section 4.5.1.4, Creating the Outbound File Adapter Service ■ Section 4.5.1.5, Wiring Services and Activities ■ Section 4.5.1.6, Deploying with JDeveloper ■ Section 4.5.1.7, Monitoring Using Oracle Enterprise Manager Fusion Middleware Control Console Fusion Middleware Control Console proxyHost proxy.host.com proxyPort 80 proxyUsername anonymous proxyPassword password useSFTP true authenticationType password transportProvider http Table 4–18 Cont. Sample SFTP Mode Properties and Values Property Value 4-98 Oracle Fusion Middleware Users Guide for Technology Adapters

4.5.1.1 Prerequisites

To perform debatching, you require the following files from the artifacts.zip file contained in the Adapters-102FileAdapterXMLDebatching sample: ■ artifactsinputemps.xml ■ artifactsschemasemployees.xsd You can obtain the Adapters-102FileAdapterXMLDebatching sample by accessing the Oracle SOA Sample Code site, and by selecting the Adapters tab.

4.5.1.2 Designing the SOA Composite

You must create a JDeveloper application to contain the SOA composite. To create an application and a project for the use case, perform the following:

1. In the Application Navigator of JDeveloper, click New Application. The Create

Generic Application - Name your application page is displayed.

2. Enter SOA-XMLDebatching in the Application Name field, as shown in

Figure 4–48 , and click Next. The Create Generic Application - Name your project page is displayed. Figure 4–48 The Generic Create Application - Name your application Page

3. Enter XMLDebatching in the Project Name field.

4. In the Available list under the Project Technologies tab, double-click SOA to move

it to the Selected list, as shown in Figure 4–49 .