Global Data Management Forum

 View Only

IIDR running CHCCLP in embedded mode

  • 1.  IIDR running CHCCLP in embedded mode

    Posted Tue April 30, 2024 11:35 AM

    Hi,

    I am trying to implement Remote CDC monitoring service by running the CHCCLP commands in embedded mode using EmbeddedScript class[*]

    I've added lib path & import statement like that: import com.ibm.replication.cdc.scripting.*; and <access server installation>/lib. When executing code on Intellij normally, no errors received. I can see the result as I want.


    But after converting code to Jar file with all dependencies using "mvn package" command, during executing jar file under C:\Program Files\Java\jre-1.8\bin> path, I got "Access server is not connected error" [**]


    How can I find the right way for executing jar file includes EmbeddedScript class? 

    [**] C:\Program Files\Java\jre-1.8\bin>java -jar C:\Users\SercanA1\IdeaProjects\ProdRemoteIIDRscripting\target\ProdRemoteIIDRscripting-1.0-SNAPSHOT-jar-with-dependencies.jar
    Picked up JAVA_TOOL_OPTIONS: "-Dos.name=Windows 7"
    [ERR2102]: Access Server is not connected.


    [*] https://www.ibm.com/docs/en/idr/11.4.0?topic=mode-working-embeddedscript



    ------------------------------
    Sercan Aydin
    ------------------------------