The Adapter for Flat Files supports synchronous outbound request
processing. During outbound operations, the J2EE application makes a call
by sending a request, in the form of a business object, to the adapter. The
adapter processes the request and based on the operation performed, the adapter
may return a business object to the J2EE application.
Each request sent from a J2EE client to the adapter includes all
the information required for creating the output file. This includes the directory
where the output file will be created, the output file name, and the operation
associated with it. The file name is treated as the key for the Flat Files
request/response business object entity.
Outbound request processing consists
of the following steps. The outbound service client:
- Looks up the business object factory service.
- Creates a business object from the business object factory.
- Locates the adapter service.
- Invokes the appropriate function on the adapter service by passing the
function name and the business object.
Passing parameters
Passing parameters defines which operation will be performed
by the adapter. Using the service client, you can pass protocol-specific parameters,
such as the directory path and file name.
You can pass protocol-specific
parameters in the following ways:
- Set the OutputDirectory and StagingDirectory properties in the ManagedConnectionFactory
properties in the enterprise service discovery wizard before deployment or
in the server administrative console after deployment.
- Set protocol-specific information (such as directory name and file name)
in the custom data binding of the wrapper business object.
- Include file content as part of the input business object.
Note: The values set at the business object level override those
set at the ManagedConnectionFactory level.