Oracle Application Server InterConnect Adapter for FTP Installation and User's Guide 10g (9.0.4) Part Number B10412-01 |
|
This chapter describes how to install and configure the FTP adapter.
This chapter discusses these topics:
This section contains these topics:
The FTP adapter must be installed in one of the following Oracle homes:
Consult the following guides before proceeding with FTP adapter installation:
To install the FTP adapter:
Consider the following scenarios:
The hub database information, such as the SID, host, port, and username/password from the Hub installation, is needed for step 2.
Note:
myFTPApp
.
The Oracle Application Server InterConnect for FTP Adapter usage page displays.
adapter.ini
file.
If You Select... | Then Click Next and Go to Step... |
---|---|
Configure for both sending and receiving messages |
|
Configure for sending messages ONLY |
|
Configure for receiving messages ONLY |
ftp://<host name>/<path>
file://localhost/<path>
If the sender endpoint is a local file system, the user name, password, and file type are not required.
Note:
The installation page that displays next is based on the selection you made in Step 5:
If You Selected... | Then Go to Step... |
---|---|
Configure for both sending and receiving messages |
|
Configure for sending messages ONLY |
ftp://<host name>/<path>
file://localhost/<path>
If the sender endpoint is a local file system, the user name, password, and file type are not required.
Note:
When finished, the Summary page displays.
Platform | Directory |
---|---|
Windows |
|
UNIX |
|
You have defined the value of Application
in Step 3.
FTP adapter installation creates an adapter.ini
file that consists of configuration parameters read by the FTP adapter at startup. These configuration parameter settings are appropriate for most FTP application environments. You can customize some adapter.ini
file parameter settings for the FTP application after installation. See the following sections:
Payload data is the data sent between applications. If you want to change the payload data type from the default of XML to the data definition description language (D3L), edit the following parameters in the adapter.ini
file.
ota.type
parameter to the payload type D3L
. For example:
ota.type
=D3L
adapter.ini
file is located.
ota.d3ls
parameter to specify the D3L files associated with the FTP application. For example:
ota.d3ls=person1.xml,person2.xml
If you want to customize the behavior of the sending endpoints (destinations) for messages, edit the following parameters in the adapter.ini
file. These parameters are not automatically set to default values during installation.
ota.send.endpoint
parameter or leave it blank if it acts only as a receiver. For example:
ota.send.endpoint
=ftp://foo.com/test
ota.send.endpoint=file://localhost/test
If the endpoint is a local file system, leave the following parameters blank:
file.sender.file_type
parameter to the file type used in FTP. For example:
file.sender.file_
type=BINARY
file.sender.user
and file.sender.password
parameters with the information of the FTP account that serves as the sending endpoint.
file.sender.proxy_host
and file.sender.proxy_port
parameters.
file.sender.staging_dir
parameter. This parameter prevents partial files picked up by external applications.
file.sender.file_name_rule
parameter. This parameter controls how the adapter generates the file name.
FileSenderCustomizer
Interface. You need to set the file.sender.customize_class
to the name of the customizing class.
If you want to customize the behavior of the receiving FTP or file endpoints for messages, edit the following parameters in the adapter.ini
file.
.receive.endpoint
or leave it blank if the adapter only acts as a sender. For example:
ota.receive.endpoint=ftp://foo.com/test
ota.receive.endpoint=ftp://localhost/test
If the endpoint is a local file system leave the following parameter blank:
Do not use the ota.receive.endpoint to a personal file directory as the files in that directory will be consumed and deleted by the FTP adapter after processing.
Note:
file.receiver.file_type
, file.receiver.password
, file.receiver.proxy_host
, and file.receiver.proxy_port
Warning:
file.receiver.file_type
parameter to the file type used in FTP. For example:
file.receiver.file_type=BINARY
file.receiver.user
and file.receiver.password
parameters with the information of the FTP account that serves as the receiving endpoint.
file.receiver.proxy_host and file.receiver.proxy_port
parameters.
file.exception.exception_dir
to a local file system directory that stores files and cannot be processed successfully. For example:
file.receiver.exception_dir=/tmp/error
file.receiver.polling_interval
parameter to the time interval in milliseconds during which to poll the FTP server or local file system. For example:
file.receiver.polling_interval=2000
file.receiver.max_msgs_retrieved
parameter to the maximum number of messages to retrieve in polling a session. For example:
file.receiver.max_msgs_retrieved=10
FileSenderCustomizer
interface. You need to set the file.receiver.customize_class
to the name of the customizing class.
Table 2-2, Table 2-3, and Table 2-4 describe FTP executable files, configuration files, and directories. These files and directories are accessible from the directory shown in Table 2-1.
Platform | Directory |
---|---|
UNIX |
|
Windows |
|
See Also:
"FTP Error Code" for a list of error codes |
File | Description |
---|---|
|
Contains one error code per line |
|
Consists of all the initialization parameters that the adapter reads at startup |
Adapters do not have integration logic. The FTP adapter has a generic transformation engine that processes metadata from the repository as runtime instructions to do transformations. The application defines for an adapter what its capabilities are. For example, it can define what messages it can publish, what messages it can subscribe to, and what are the transformations to perform. The application parameter allows the adapter to become smart in the context of the application to which it is connected. It allows the adapter to retrieve from the repository only that metadata that is relevant to the application. The application parameter must match the corresponding application that will be defined in iStudio under the Applications folder.
If you are using pre-packaged metadata, after importing the pre-packaged metadata into the repository, start up iStudio to find the corresponding application (under the Applications folder in iStudio) to use as the application for the adapter you are installing (unless the package you are using provides directions for what the application should be).
The following are .ini
files used in configuring the FTP adapter.
The FTP adapter connects to the hub database using parameters from the hub.ini
file located in the hub directory. The following table lists the parameter name, a description for each parameter, the possible and default values, and an example.
When a hub is installed on a Real Application Clusters (RAC) database, parameters listed in Table 2-5 represent information on additional nodes used for connection and configuration. These parameters are added on top of the default parameters which represent the primary node. In Table 2-5, x
represent the node number, which varies between 2 and the number of nodes. For example, if the Real Application Clusters setup contains 4 nodes, x
can take a value between 2
and 4
.
The agent component of the FTP adapter reads the adapter.ini
file at runtime to access FTP adapter parameter configuration information. Table 2-6 lists the parameter name, a description for each parameter, the possible and default values, and an example.
Parameter | Description | Example |
---|---|---|
|
Specifies the name of the application to which this adapter connects. This must match with the name specified in iStudio during creation of metadata. Use any alphanumeric string. There is no default value. |
|
|
Specifies the partition this adapter handles as defined in iStudio. Any alphanumeric string is a possible value. There is no default value. |
|
|
Specifies the instance number to which this adapter corresponds. Specify a value only if you want to have multiple adapter instances for the given application with the given partition. Possible values are any integer greater than or equal to |
|
|
The amount of logging. Possible values are:
The default value is |
|
|
Specifies the subscriber name used when this adapter registers its subscription. The possible value is a valid Oracle Advanced Queue subscriber name. There is no default value. |
|
|
Specifies conditions for message selection when registering its subscription with the hub. The possible value is a valid Oracle Advanced Queue message selector string. There is no default value. |
|
|
Specifies the subscriber name used when multiple adapter instances for the given application with the given partition are used. This parameter is optional if there is only one instance running. The possible value is the application name ( |
If |
|
Used only if there are multiple adapter instances for the given application with the given partition. The possible value is a string built using the concatenated application name ( |
If |
|
Specifies if message tracking is enabled. Set this parameter to |
|
|
Specifies if throughput measurement is enabled. Set this parameter to |
|
|
Specifies whether to use a custom document type definition (DTD) for the common view message when handing it to the hub (the repository in which metadata is stored). By default, adapters use an OracleAS InterConnect-specific DTD for all messages sent to the hub, as other OracleAS InterConnect adapters retrieve the messages from the hub and know how to interpret them.
Set this parameter to |
|
|
Specifies the metadata caching algorithm. Possible values are:
The default value is |
|
|
Specifies the domain value mapping (DVM) table caching algorithm. Possible values are:
The default value is |
|
|
Specifies the lookup table caching algorithm. Possible values are:
The default value is |
|
|
With any of the agent caching methods enabled, metadata from the repository is cached locally on the file system. Set this parameter to Note: After changing metadata or DVM tables for this adapter in iStudio, you must delete the cache to guarantee access to the new metadata or table information. |
|
|
Specifies the maximum number of application objects' metadata to cache. Possible values are any integer greater than or equal to |
|
|
Specifies the maximum number of common objects' metadata to cache. Possible values are any integer greater than or equal to |
|
|
Specifies the maximum number of messages' metadata (publish/subscribe and invoke/implement) to cache. Possible values are any integer greater than or equal to |
|
|
Specifies the maximum number of DVM tables to cache. Possible values are any integer greater than or equal to |
|
|
Specifies the maximum number of lookup tables to cache. Possible values are any integer greater than or equal to |
|
|
Specifies the maximum size to which internal OracleAS InterConnect message queues can grow. Possible values are any integer greater than or equal to |
|
|
Specifies the maximum size to which internal OracleAS InterConnect persistence queues can grow. Possible values are any integer greater than or equal to |
|
|
Specifies how often to run the persistence cleaner thread (in milliseconds). Possible values are any integer greater than or equal to |
|
|
Specifies how often for the persistence thread to retry when it fails to send an OracleAS InterConnect message. Possible values are any integer greater than or equal to |
|
|
Specifies how to turn on or off the pipeline for messages from the Bridge towards the hub. If you set the pipeline to |
|
|
Specifies how to turn on or off the pipeline for messages from the hub towards the Bridge. If you set the pipeline to |
|
|
Windows only. Specifies the value to which to set the environment variable |
|
|
Specifies the class path used by the adapter Java VM. If a custom adapter is developed and, as a result, the adapter is to pick up any additional jars, add the jars to the existing set of jars being picked up. Possible values are the valid class path. There is no default value. |
|
|
Specifies the entry class for the Windows service. A possible value is |
|
|
Windows only. Specifies the maximum size to which the Java VM's stack can grow. Possible values are the valid Java VM maximum native stack size. The default value is the default for the Java VM. |
|
|
Windows only. Specifies the maximum size to which the Java VM's native stack can grow. Possible values are the valid Java VM maximum native stack size. The default value is the default for the Java VM. |
|
|
Windows only. Specifies the minimum heap size for the adapter Java VM. Possible values are the valid Java VM heap sizes. The default value is the default Java VM heap size. |
|
|
Windows only. Specifies the maximum heap size for the adapter Java VM. Possible values are any valid Java VM heap sizes. The default value is |
|
|
Windows only. Specifies the number of |
|
|
Windows only. Specifies any additional arguments to the Java VM. For example, to get line numbers in any of the stack traces, set |
|
|
The CORBA port number on which the adapter CORBA service listens. Generally, this port is allocated dynamically. However, it can be configured to enable access across firewall. |
|
|
Format for date fields expressed as string. The following pattern letters are defined. All other characters from A to Z and from a to z are reserved. Letter Date or Time Component Examples
The default date format is Note: This parameter specifies date format. It is applicable for the date format only. |
Date format pattern
Multiple date format can be specified as
|
|
This parameter is a valid ISO Language Code. These lower-case and two-letter codes are defined by ISO-639. You can find a full list of these codes at a Web site, such as,
The default language code is Note: This parameter specifies date format. It is applicable for the date format only. |
|
|
This parameter is a valid ISO Country Code. These upper-case and two-letter codes are defined by ISO-3166. You can find a full list of these codes at a Web site, such as,
The default Country code is Note: This parameter specifies date format. It is applicable for the date format only. |
|
|
Character encoding for published messages. The adapter uses this parameter to generate encoding information in encoding tag of transformed OracleAS InterConnect message. OracleAS InterConnect represents messages internally as an XML document. The default encoding of the XML document is |
|
Table 2-7 lists the parameters specific to the FTP adapter. With the exception of the bridge_class
parameter, all parameters can be edited after installation.
On UNIX, start the FTP adapter using the start
script in the following directory:
ORACLE_HOME
/oai/9.0.4/adapters/Application
Type start, then press Enter.
On Windows, start the FTP adapter from the Services window available from the Start menu.
On... | Choose... |
---|---|
Windows NT |
Start > Settings > Control Panel > Services |
Windows 2000 |
Start > Settings > Control Panel > Administrative Tools > Services |
The Services window appears.
On... | Choose... |
---|---|
Windows NT |
Choose Start. |
Windows 2000 |
Right click the service and choose Start from the menu. |
The following file displays an FTP adapter that was started successfully:
D:\oracle\ora904\oai\9.0.4\adapters\ftpapp>D:\oracle\ora904\oai\9.0.4·in\JavaSer vice.exe -debug "Oracle OAI Adapter 9.0.4 - ftpapp" D:\oracle\ora9041\oai\9.0.4\adapters\ftpapp adapter.ini The Adapter service is starting.. Registering your application (FTPAPP).. Initializing the Bridge oracle.oai.agent.adapter.technology.TechBridge.. Starting the Bridge oracle.oai.agent.adapter.technology.TechBridge.. Service started successfully.
On UNIX, stop the FTP adapter using the stop
script in the following directory:
ORACLE_HOME
/oai/9.0.4/adapters/Application
Type stop, then press Enter.
On Windows, stop the adapter from the Services window available from the Start menu.
On... | Choose... |
---|---|
Windows NT |
Start > Settings > Control Panel > Services |
Windows 2000 |
Start > Settings > Control Panel > Administrative Tools > Services |
The Services window appears.
On... | Choose... |
---|---|
Windows NT |
Choose Stop. |
Windows 2000 |
Right click the service and choose Stop from the menu. |
You may verify the stop status by viewing the oailog.txt
files in the appropriate time stamped subdirectory of the log
directory within the adapter directory.
|
![]() Copyright © 2002, 2003 Oracle Corporation. All Rights Reserved. |
|