Transferring multiple files to a Connect:Direct node

You can transfer multiple files from a WebSphere® MQ Managed File Transfer agent to a Connect:Direct® node by using the Connect:Direct bridge. To use a Connect:Direct node as the destination of the multiple file transfer, specify the Connect:Direct bridge agent as the destination agent and specify the destination directory in the form connect_direct_node_name:directory_path.

Before you begin

Before transferring files, you must configure the Connect:Direct bridge, which is a component of WebSphere MQ Managed File Transfer. See Configuring the Connect:Direct bridge.

About this task

In this example, the source agent is called FTE_AGENT. The Connect:Direct bridge agent is called CD_BRIDGE. The destination Connect:Direct node is called CD_NODE1. The files to be transferred are /home/jack/data.log, /logs/log1.txt, and /results/latest on the system where FTE_AGENT is located. The files are transferred to the directory /in/files on the system where CD_NODE1 is running.

Procedure

Use the fteCreateTransfer command with the value for the -dd (destination directory) parameter in the form connect_direct_node_name:directory_path. Specify the value of the -da (destination agent) parameter as the name of the Connect:Direct bridge agent.
Note: The Connect:Direct node specified by connect_direct_node_name is the node that you want the files to be transferred to, not the Connect:Direct node that operates as part of the Connect:Direct bridge.
fteCreateTransfer -sa FTE_AGENT -da CD_BRIDGE 
                  -dd CD_NODE1:/in/files /home/jack/data.log
                  /logs/log1.txt /results/latest
For more information, see fteCreateTransfer (create new file transfer).

Results

The source agent FTE_AGENT transfers the first file to the Connect:Direct bridge agent CD_BRIDGE. The Connect:Direct bridge agent temporarily stores the file in the location defined by the cdTmpDir property. When the file has been completely transferred from the source agent to the Connect:Direct bridge, the Connect:Direct bridge agent sends the file to the Connect:Direct node that is defined by the cdNode agent property. This node sends the file to the destination Connect:Direct node CD_NODE1. The Connect:Direct bridge agent deletes the file from the temporary location when the transfer between the two Connect:Direct nodes is complete. This process is repeated for each specified source file.