AppCode Configuration

  • kishore.k_84
    Participant
    9 years ago #5297

    How do I configure AppCode on my instance?

    pavankumar.j_139
    Participant
    8 years, 11 months ago #5555

    Kindly use the below given steps in order to setup AppCode on your instance.

    Note: Before proceeding with the below given steps, Eclipse Luna with Java 1.8 must be installed on the machine.

    Step 1: Creating Eclipse project
    i. File  new  java project
    ii. Enter project name and finish

    Step 2:Setting up the project
    i. Right click on ProjectName in package explorer  new  folder
    ii. Name it as “lib”
    iii. Right click on ProjectName in package explorer  new  XML file
    iv. Name it as “appcode-deploy.xml”
    Copy the below content and paste it in “appcode-deploy.xml”


    Build script for AppCode











    deprecation=”false”nowarn=”on”verbose=”false”fork=”true”
    memoryInitialSize=”128m”memoryMaximumSize=”1024m”>






    basedir=”${compile.dir}”>



    username=”${dbsync.server.username}”
    password=”${dbsync.server.password}”
    environment=”${environment}”
    profile=”${profile}”
    zip=”${deploy.dir}/zip/${appcode.name}.zip”/>

    v. Apply/Change the below properties values in this xml:
    1. Appcode.name = give any name, it will reflect in jar name.
    2. Appcode location = “Right click on your project  properties – Resources  location” copy and paste the location given here
    3. Environment = is nothing but a name. This is the name you use to connect from DBSync.
    4.dbsync.server.url = dbsync application running url.
    5. Dbsync.server.username = provide username to connect dbsync.
    6. Dbsync.server.password = corresponding password for the username

    vi. Download the dbsync-sdk.jar from the below url.
    http://www.mydbsync.com/download/dbsync-sdk.zip
    vii. Extract the downloaded zip file.
    viii. From your eclipse right click on project  properties Java Build Path  Libraries  add external jars
    locate your extracted dbsync-sdk folder and select the jar, click ok.
    ix. Now go to app-deploy.xml and change the value of “sdk” property.
    copy your dbsync-sdk location and paste the value in “sdk” location.

    Step 3: Creating adapter classes
    i. Create your functionality classes under the folder src.
    ii. To make your classes as adapter class you need to inherit AppCode interface. NOTE: All the methods in the class which extends AppCode will be available in DBSync.
    iii. com.appmashups.appcode.AppCodethis is the class to Implements.
    iv. Once AppCode interface is implemented then override the necessary methods.

    Step 4: Deploy AppCode
    i. Start your dbsync application if it’s not running already
    ii. Right click on app-deploy.xml  Run as  Ant Build
    iii. If build is successful then the appcode is successfully deployed into DBSync. If Build Failed, please follow from Step 1 properly.

    Step 5: Adding your adapter into DBSync.
    i. Go to DBSync page  choose any project  Connectors  Create new Connector.
    Enter any name and choose connector type as “java Connector”
    ii. Give classpath as exactly as the environment name you have given in the app-deploy.xml.
    iii. Leave other fields as blank and save.
    iv. Go to the selected project  choose any process  choose any workflow.
    v. QueryBuilder  select Datasource
    you will be able to see your connector, choose that.
    vi. Click Select object.
    Now all the methods which you have created under the adapter class will be shown. Choose any click preview, you will be able to see the result right there.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.