Skip to end of metadata
Go to start of metadata

Installing the Adapter consists of three steps: building the jar file and put it into %LINK_DIR%\lib directory, generating the config template and the startup template.

"%LINK_DIR%\ext\bin\jar" cf "%LINK_DIR%\lib\sfadapter.jar"
-C %CLASSES% com\acta\adapter\sf

"%LINK_DIR%\ext\jre\bin\java" -classpath
"%LINK_DIR%\lib\sfadapter.jar;%LINK_DIR%\ext\lib\xerces.jar;
%LINK_DIR%\lib\acta_adapter_sdk.jar;
%LINK_DIR%\lib\acta_broker_client.jar;%LINK_DIR%\lib\acta_tool.jar"
com.acta.adapter.sdk.AdapterMain -a com.acta.adapter.sf.SFAdapter
-d "%LINK_DIR%\adapters\config\templates\SFAdapter.xml"

"%LINK_DIR%\ext\jre\bin\java" -classpath
"%LINK_DIR%\lib\sfadapter.jar;%LINK_DIR%\ext\lib\xerces.jar;
%LINK_DIR%\lib\acta_adapter_sdk.jar;
%LINK_DIR%\lib\acta_broker_client.jar;%LINK_DIR%\lib\acta_tool.jar"
com.acta.adapter.sdkutil.CreateStartupTemplate "%LINK_DIR%" SFAdapter

So at the end, the jar file is placed in the DI lib directory, the configuration template in \adapters\config\templates and the startup template in \adapters\install

The XML file in the install directory is used by the webadmin as template for the default properties for this adapter. Therefore you should make sure if all is set correctly. Especially the element "adapterMainClass" should contain the actual and full class name:

The XML file in the install directory is used by the webadmin as template for the default properties for this adapter. Therefore you should make sure if all is set correctly. Especially the element "adapterMainClass" should contain the actual and full class name: com.acta.adapter.sf.SFAdapter". And the classpath element should contain all jat files required, including the sfadapter.jar file! Both changes are required to be made by hand still and are marked with !!!!!!!!! below...

<com.acta.adapter.sdkutil.StartupConfig
    DisplayName ="Adapter instance startup configuration"
    SDKVersion ="11.5.0.0"
    DisplayName_MsgID="3020216">
 <adapterInstanceName
        DisplayName ="Adapter Instance Name:"
        Description ="Must be unique. Becomes part of adapter's datastore definition."
        Description_MsgID="3020218"
        DisplayName_MsgID="3020217"
        Order="1">
      </adapterInstanceName>
      ....
      ....
      ....
      <adapterJarFile
        DisplayName ="Adapter's Jar Files:"
        Description ="Adapter's directories .... relative to the LINK_DIR."
        isArray ="true"
        Description_MsgID="3020234"
        isHidden="true"
        DisplayName_MsgID="3020233"
        Order="10">
          /lib/acta_adapter_sdk.jar;/lib/acta_broker_client.jar;
          /ext/lib/xerces.jar;/lib/acta_tool.jar;/lib/log4j-1.2.3.jar;
          /lib/sfadapter.jar            !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      </adapterJarFile>
      ....
      ....
      ....
      ....
      ....
 <adapterMainClass
        DisplayName ="Adapter Class:"
        Description ="Fully qualified adapter class name."
        Description_MsgID="3020252"
        isEditable="false"
        DisplayName_MsgID="3020251"
        Order="19">
          com.acta.adapter.sf.SFAdapter           !!!!!!!!!!!!!!!!!!!!!!!!!
      </adapterMainClass>
</com.acta.adapter.sdkutil.StartupConfig>



1 Comment

  1. Unknown User (yhcvjf6)

    This does not work with 4.1 due to some of the folders moving from %LINK_DIR% to %DS_COMMON_DIR%.

    You will need to edit the commands accordingly.