Click eisHAFileAdapter. The Outbound Connection Properties for the

Oracle JCA Adapter for FilesFTP 4-75 controlDir - Set it to the directory structure where you want the control files to be stored. You must set it to a shared location if multiple WebLogic Server instances run in a cluster. inboundDataSource - Set the value to jdbcSOADataSource. This is the data source, where the schemas corresponding to high availability are pre-created. The pre-created schema file can be found under BEA_ HOMEAS11gR1SOArcuintegrationsoainfrasqladaptercreat eschema_adapter_oracle.sql. If you want to create the schemas elsewhere, use this script. You must set the inboundDataSource property accordingly if you choose a different schema. h. Configure BPEL Process or Mediator Scenario to use the connection factory, as shown in the following example: adapter-config name=FlatStructureIn adapter=File Adapter xmlns=http:platform.integration.oracleblocksadapterfwmetadata connection-factory location=eisHAFileAdapter UIincludeWildcard=.txt adapterRef= endpoint-activation portType=Read_ptt operation=Read activation-spec className=oracle.tip.adapter.file.inbound.FileActivationSpec.. property.. property.. activation-spec endpoint-activation adapter-config

4.4.2.3 High Availability in Outbound Operations

The Oracle File and FTP Adapters must ensure that if multiple references write to the same directory, then these do not overwrite each other. The following locking capabilities can be used to make Oracle File and FTP Adapters highly available for outbound operations: ■ Database mutex ■ User-defined mutex Using a Database Mutex You must use the following procedure to make an outbound Oracle File or FTP Adapter service highly available by using database table as a coordinator:

1. Create Database Tables

You are not required to perform this step as the database schemas are precreated as a part of soainfra.

2. Modify Deployment Descriptor for Oracle File Adapter

Note: The location attribute is set to eisHAFileAdapter for the connection factory. Note: You must increase global transaction timeouts if you use the database as a coordinator. 4-76 Oracle Fusion Middleware Users Guide for Technology Adapters Modify Oracle File Adapter deployment descriptor for the connection-instance corresponding to eisHAFileAdapter from the Oracle WebLogic Server Administration Console: a. Log in to your Oracle WebLogic Server Administration Console. To access the console, navigate to http:servername:portnumberconsole.

b. Click Deployments in the left pane for Domain Structure.

c. Click FileAdapter under Summary of Deployments on the right pane.

d. Click the Configuration tab.

e. Click the Outbound Connection Pools tab, and expand

javax.resource.cci.ConnectionFactory to see the configured connection factories, as shown in Figure 4–42 .

f. Click eisHAFileAdapter. The Outbound Connection Properties page is

displayed with the connection factory corresponding to high availability. g. Update the connection factory properties, as shown in Figure 4–44 . Figure 4–44 Oracle WebLogic Server Administration Console - Settings for javax.resource.cci.Connectionfactory Page The new parameters in connection factory for Oracle File and FTP Adapters are as follows: controlDir - Set it to the directory structure where you want the control files to be stored. You must set it to a shared location if multiple WebLogic Server instances run in a cluster. inboundDataSource - Set the value to jdbcSOADataSource. This is the data source, where the schemas corresponding to high availability are precreated. The precreated schemas can be found under BEA_ HOMEAS11gR1SOArcuintegrationsoainfrasqladaptercreat eschema_adapter_oracle.sql. If you want to create the schemas elsewhere, then use this script. You must set the inboundDataSource property accordingly if you choose a different schema. outboundDataSource - Set the value to jdbcSOADataSource. This is the data source where the schemas corresponding to high availability are precreated. The precreated schemas can be found under BEA_ HOMEAS11gR1SOArcuintegrationsoainfrasqladaptercreat eschema_adapter_oracle.sql. If you want to create the schemas Oracle JCA Adapter for FilesFTP 4-77 elsewhere, then use this script. You must set the outboundDataSource property if you choose to do so. outboundLockTypeForWrite - Set the value to oracle if you are using Oracle Database. By default the Oracle File and FTP Adapters use an in-memory mutex to lock outbound write operations. You must choose from the following values for synchronizing write operations: memory - The Oracle File and FTP Adapters use an in-memory mutex to synchronize access to the file system. oracle - The adapter uses the Oracle Database sequence. db - The adapter uses a precreated database table FILEADAPTER_MUTEX as the locking mechanism. You must use this option only if you are using a schema other than the Oracle Database schema. user-defined - The adapter uses a user-defined mutex. To configure the user-defined mutex, you must implement the mutex interface oracle.tip.adapter.file.Mutex and then configure a new binding-property with the name oracle.tip.adapter.file.mutex and value as the fully qualified class name for the mutex for the outbound reference. h. Configure BPEL Process or Mediator Scenario to use the connection factory, as shown in the following example: adapter-config name=FlatStructureOut adapter=File Adapter xmlns=http:platform.integration.oracleblocksadapterfwmetadata connection-factory location=eisHAFileAdapter adapterRef= endpoint-interaction portType=Write_ptt operation=Write interaction-spec className=oracle.tip.adapter.file.outbound.FileInteractionSpec property.. property.. interaction-spec endpoint-interaction adapter-config

4.4.3 Using Secure FTP with the Oracle FTP Adapter

The Oracle FTP Adapter supports the use of the secure FTP feature on Windows, Solaris, and Linux. For Windows, this feature is certified on FileZilla FTP server with OpenSSL. This section provides an overview of secure FTP functionality and describes how to install and configure this feature. This section includes the following topics: ■ Section 4.4.3.1, Secure FTP Overview ■ Section 4.4.3.2, Installing and Configuring FTP Over SSL on Solaris and Linux ■ Section 4.4.3.3, Installing and Configuring FTP Over SSL on Windows Note: The location attribute is set to eisHAFileAdapter for the connection factory.