uCosminexus Service Platform, Overview
To simplify recovery from error, design transactions in FTP integration with the following policy:
The transactions are managed by using EJB transactions in order to synchronize the content of response to the FTP client, such as normal and abnormal termination, and the processing status of the business process.
This subsection describes the scope of a transaction for each file transfer pattern.
The following figure shows the transaction scope for synchronous business processes.
For details on the file transfer patterns using synchronous business processes, see "8.3.1(1) Procedure of file transfer using synchronous business processes" and "8.3.2 Transfer of files from an FTP server to an FTP client".
Figure 8-42 For synchronous business processes (To transfer files from an FTP client to an FTP server)
Figure 8-43 For synchronous business processes (To transfer files from an FTP server to an FTP client)
The following figure shows the transaction scope for the asynchronous business processes.
For details on the file transfer patterns using asynchronous business processes, see "8.3.1(2) Procedure of file transfer using asynchronous business processes".
Figure 8-44 For asynchronous business processes
The following figure shows the transaction scope for the transfer of files from an FTP client to another FTP client.
For details on the file transfer pattern from an FTP client to another FTP client, see "8.3.3 Transfer of files from an FTP client to another FTP client".
Figure 8-45 For the transfer of files from an FTP client to another FTP client (To transfer files to the common folder in the HCSC server)
Figure 8-46 For the transfer of files from an FTP client to another FTP client (To obtain files from the common folder in the HCSC server)
In FTP integration, when an error occurs, each component deletes the output files to match the processing results and file status.
The following table describes the processing in FTP integration and the processing in the corresponding components:
Table 8-30 Handling of files in FTP integration
Processing | Component | Assumed cause of error | Handling of files in the case of error | |
---|---|---|---|---|
Input file | Output file | |||
File transmission from FTP client | FTP reception |
|
-- | Delete |
File reception from FTP client | FTP reception |
|
State before processing is guaranteed | -- |
File transmission to FTP server | FTP adapter |
|
State before processing is guaranteed | -- |
File reception from FTP server | FTP adapter |
|
-- | Delete |
File conversion | File operations adapter |
|
State before processing is guaranteed | Delete |
File replication | File operations adapter |
|
State before processing is guaranteed | Delete |
Note that if the file deletion process does not terminate normally due to the following causes, restart the system: #1#2
To consider the entire transfer processing for one file as one-phase transaction, you must consider the updated resources as one. In FTP integration, you cannot perform two-phase commit to match the synchronization of updates for multiple resources. Therefore, when you design a business process, you must consider the following points:
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.