Starting an Adapter

You can start an adapter either in unmanaged or managed mode. In unmanaged mode, the adapter is started separately from the ESP project, and in managed mode, the adapter is started with the ESP project.

Mode Steps
Unmanaged
  1. Start the ESP node by running start_node.bat or start_node.sh in the adapter instance folder.
  2. Start the adapter by running start_adapter.bat or start_adapter.sh
Managed
  1. Create a cnxml file for your adapter.
  2. Add an ATTACH ADAPTER statement in the CCL file of your project to reference the adapter. For example,
    ATTACH INPUT ADAPTER Generic_Input_Adapter__external_1 
    TYPE genericinputadapter
    to  BaseInput
    PROPERTIES configFilePath =
    'C:/sybase/ESP-5_1/adapters/framework/instances/file_csv_input/adapter_config.xml' ;
  3. Start the node.
    Windows:
    cd %ESP_HOME%\cluster\nodes\<nodename>
    %ESP_HOME%\bin\esp_server --cluster-node <nodename>.xml
    or
    UNIX:
    cd $ESP_HOME/cluster/nodes/<nodename>
    $ESP_HOME/bin/esp_server --cluster-node <nodename>.xml
  4. Compile CCL to create CCX.
    Windows:
    %ESP_HOME%\bin\esp_compiler -i <modelname>.ccl -o <modelname>.ccx
    or
    UNIX:
    $ESP_HOME/bin/esp_compiler -i <modelname>.ccl -o <modelname>.ccx
  5. Deploy the project on the cluster.
    Windows:
    %ESP_HOME%\bin\esp_cluster_admin" --uri=esp://localhost:19011
    --username=sybase --password=sybase --add_project --workspacename=
    <workspacename> --project-name=<projectname> --ccx=<modelname>.ccx
    or
    UNIX:
    $ESP_HOME/bin/esp_cluster_admin" --uri=esp://localhost:19011
    --username=sybase --password=sybase --add_project --workspacename=
    <workspacename> --project-name=<projectname> --ccx=<modelname>.ccx
  6. Start the deployed project on the cluster.
    Windows:
    %ESP_HOME%\bin\esp_cluster_admin" --uri=esp://localhost:19011
    --username=sybase --password=sybase --start_project --
    workspace-name=<workspacename> --project-name=<projectname>
    or
    UNIX:
    $ESP_HOME/bin/esp_cluster_admin" --uri=esp://localhost:19011
    --username=sybase --password=sybase --start_project --
    workspace-name=<workspacename> --project-name=<projectname>
Related concepts
Adapter Integration Framework
Related tasks
Creating a Cnxml File for a Custom Adapter
Stopping an Adapter
Related reference
Adapter Toolkit: Sample cnxml File for Output Adapters
Adapter Toolkit: Sample cnxml File for Input Adapters