Sun Adapter for Batch Tutorial

Configuring the Adapter Properties

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

ProcedureTo Configure the File Adapter Connectivity Map properties

  1. From the Connectivity Map, double-click the inbound FileIn_BatchFTPOverSSL Adapter between the FileIn_BatchFTPOverSSL External Application and the jcolBatchFTPOverSSL1 service.

    The Properties Editor opens to the inbound File Adapter properties.

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

    Inbound File Adapter Connectivity Map Properties 

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

    Input File Name 

    FileIn_BatchFTPOverSSL.txt

  3. From the Connectivity Map, modify the inbound FileIn_BatchSFTP Adapter between the FileIn_BatchSFTP External Application and the jcolBatchSFTP1 service.

    See the following table.

    Inbound File Adapter Connectivity Map Properties 

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

    Input File Name 

    FileIn_BatchSFTP.txt

  4. From the Connectivity Map, modify the inbound FileIn_BatchSCP Adapter between the FileIn_BatchSCP External Application and the jcolBatchSCP1 service.

    See the following table.

    Inbound File Adapter Connectivity Map Properties 

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

    Input File Name 

    FileIn_BatchSCP.txt

  5. From the Connectivity Map, modify the Outbound FileOut_BatchFTPOverSSL Adapter between the FileOut_BatchFTPOverSSL External Application and the jcolBatchFTPOverSSL1 service.

    See the following table.

    Outbound File Adapter Connectivity Map Properties 

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

    Output File Name 

    FileOut_BatchFTPOverSSL.dat

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 

    Inbound File Adapter ⇒ Parameter Settings - Set as directed, otherwise use the default settings.

    Directory 

    An input directory on your system that the inbound File Adapters poll and pick up any specified input files. 

    Outbound File Adapter ⇒ Parameter Settings - Set as directed, otherwise use the default settings.

    Directory 

    An output directory to which the outbound File Adapter publishes (writes) the output messages. 

ProcedureTo Modify the Batch/FTP Adapter Connectivity Map Properties

  1. From the Connectivity Map, double-click the BatchFTPoverSSL1 Adapter, located between the BatchFTPOverSSL1 External Application and the jcolBatchFTPOverSSL1 service.

    The Adapter Properties Editor appears.

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

    BatchFTPoverSSL Adapter Connectivity Map Properties 

    FTP and SSL Settings - Set as directed, otherwise use the default settings

    Local Directory 

    The local directory name and path for files that are sent to or received from a remote system. The default is X:/Batch51 

    Target File Name 

    The name of the remote file. 

ProcedureTo Modify the BatchFTPoverSSL Adapter Environment Properties

  1. From the Services tree, right-click the BatchFTPoverSSL External System (in this Project, esBatchFTPoverSSL ), and select Properties.

    The Properties Editor opens to the BatchFTPoverSSL Adapter Environment properties.

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

    BatchFTPoverSSL Adapter Environment Properties 

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

    Host Name 

    Host name or IP of the FTP server 

    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 

    Configure the Adapter properties for your system.

ProcedureTo Create the Sample Directories

The prjBatch_Secure sample Project uses a number of directories.

  1. Create the directories associated with Adapter configuration properties:

    • Target Directory (Inbound File Adapter Environment Properties):

      Select a name for your target directory.

    • Output Directory (Outbound File Adapter Environment Properties):

      Select a name for your output directory.

    Create these directories on your system, or change the properties to reference your existing directories.

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_Secure) and select New⇒Deployment Profile.

  2. Enter a name for the Deployment Profile (for this sample dpBatch_Secure).

  3. Make sure that the selected Environment is envBatch_Secure and 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.