Sun Adapter for Batch Tutorial

Configuring the Adapters' Properties

The prjBatch_Inbound_LocalFileIn_FTPOut sample project contains three Adapters, each represented in the Connectivity Map as a node between an External Application and a Collaboration. The Adapters facilitate communication and movement of data between the external applications and the Sun Enterprise Service Bus.

The Adapter properties must be set from both the Project Explorer’s Connectivity Map and the Services tree.

ProcedureTo Configure the BatchInbound Adapter Properties

  1. From the Connectivity Map, double-click the BatchInbound Adapter.

    The Adapter Properties Editor appears.

  2. Modify the properties for your system, including the settings for the BatchInbound Adapter in the following table, and click OK.

    BatchInbound Adapter Connectivity Map Properties 

    Settings - Set as directed, otherwise use the default settings

    Directory Name 

    Your input directory (full address)

    File Name 

    BatchInbound.txt

    The BatchInbound Adapter Environment properties can keep the default settings for this sample.

ProcedureTo Configure the BatchLocalFile Adapter Properties

  1. From the Connectivity Map, double-click the BatchLocalFile Adapter.

    The Adapter Properties Editor appears.

  2. Modify the properties for your system, including the settings in the following table, and click OK.

    BatchLocalFile Adapter Properties 

    Target Location - Set as directed, otherwise use the default settings

    Append 

    Yes 

    Target File Name 

    BatchLocalFileOut.txt

    Target File Name is Pattern 

    No 

    Target Directory Name 

    The directory on the system where files are sent. 

    Target Directory Name is Pattern 

    No 

  3. To refresh and save your default BatchLocalFile Adapter properties, double-click the BatchLocalFile External System in the Services tree to open the Properties Editor.

  4. Click OK to save the default settings.

Configuring the BatchFTP Adapter Properties

ProcedureTo Modify the BatchFTP Adapter Connectivity Map Properties

  1. From the Connectivity Map, double-click the BatchFTP Adapter.

    The Adapter Properties Editor appears.

  2. Modify the BatchFTP Adapter Connectivity Map properties for your system, including the settings in the following table, and click OK.

    BatchLocalFile Adapter Properties 

    Target location - Set as directed, otherwise use the default settings

    Target Directory Name 

    The directory on the external system (absolute path) from which files are retrieved or sent 

    Target File Name 

    The FTP remote file name which is retrieved or sent 

ProcedureTo Modify the BatchFTP Adapter Properties

  1. From the Services tree, right-click the BatchFTP External System (esBatchFTP in this sample), and select Properties.

    The Properties Editor opens to the BatchFTP Adapter Environment properties.

  2. Modify the BatchFTP Adapter Environment properties for your system, including the settings in the following table, and click OK.

    BatchFTP Adapter Environment-Configuration Parameters 

    Target location - Set as directed, otherwise use the default settings

    FTP  

    Set as directed, otherwise use the default settings. 

    Host Name 

    The name of the external system to which the Adapter connects 

    Password 

    Password required to log into the 

    external system 

    Server Port 

    Port number to use to connect to the FTP server 

    User Name 

    User ID used to login to the external system