Sun Adapter for Batch Tutorial

Configuring the Adapter Properties

The prjBatch_Streaming Project uses five Adapters, each represented in the Connectivity Map as a node between an External Application and a Service.

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 

    File Name 

    BatchInbound.txt


    Note –

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


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.

    BatchFTP Adapter Connectivity Map Properties 

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

    Target Directory Name 

    The directory (absolute path) from which files are retrieved 

    Target File Name 

    BatchFTPIn.txt

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 Properties 

    FTP - Set as directed, otherwise use the default settings.

    Host Name 

    localhost 

    Server Port 

    Port number to use to connect to the FTP server 

    User Name 

    User ID used to log into the system 

    Password 

    Password required to log into the system 

ProcedureTo Configure the BatchLocalFile Adapter Properties

The BatchLocalFile Adapter’s specific properties are set from the Connectivity Map. Environment properties can use the default settings.

  1. 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 

    Post Transfer - Set as directed, otherwise use the default settings

    Post Directory Name 

    X:/Batch51/ready

    Post File Name 

    BatchLocalFileReady.txt

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

    Target File Name 

    The name of the file to be sent. 

    Target Directory Name 

    The directory on the system where files are sent. 

ProcedureTo Configure the BatchRecord Adapter Properties

The BatchRecord Adapter’s specific properties are set from the Connectivity Map. Environment properties can use the default settings.

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

    The Properties Sheet opens to the Adapter Connectivity Map properties.

  2. Modify the configuration for your system, including the settings in the following table.

    BatchRecord Adapter Connectivity Map Properties 

    General Settings - Set as directed, otherwise use the default settings

    Parse or Create Mode 

    Parse 

    Record - Set as directed, otherwise use the default settings

    Delimiter on Last Record 

    Yes 

    Record Delimiter 

    \n 

    Record Type 

    Delimited 

Configuring the File Adapter Properties

ProcedureTo Modify the outbound File Adapter Connectivity Map properties

  1. From the Connectivity Map, double-click the outbound File1 Adapter.

    The Properties Editor opens to the outbound File Adapter properties.

  2. Modify the configuration for your system, including the settings in the following table.

    Outbound File Adapter Connectivity Map Properties 

    Parameter Settings - Set as directed, otherwise use the default settings

    Output File Name 

    FileOutput%d.txt

ProcedureTo Modify the File Adapter Environment properties

  1. From the Services tree, right-click the esFile External System, and select Properties.

    The Properties Editor opens to the File Adapter Environment properties.

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

    File Adapter Environment Properties 

    Parameter Settings - Set as directed, otherwise use the default settings.

    Directory 

    The directory on the system where files are sent. 

ProcedureTo Create the Deployment Profile

A Deployment Profile is used to assign Collaborations and message destinations to the Sun Java System Application Server and message server. Deployment Profiles are created using the Deployment Editor.

  1. From the Enterprise Explorer’s Project Explorer, right-click the Project (prjBatch_Inbound_FTPIn_LocalFileOut) and select New ⇒ Deployment Profile.

  2. Enter a name for the Deployment Profile (for this Project, use dpBatch_Inbound_FTPIn_LocalFileOut).

    Make sure that the selected Environment is envBatch_Inbound_FTPIn_LocalFileOut.

  3. Click OK.

  4. Click Automap.

    The Project’s components are automatically mapped to their respective system windows.


    Note –

    If any of your Project components did not successfully map to an external system, open each of your Adapter’s configuration properties (Connectivity Map and Environment) and click OK to close and save the current configuration, then click Automap again.


  5. Save the Project.