Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Java app based on smartGWT (.jar)

    Hi Isomorphic,

    I'm trying to create an app that will check if data in two databases (Oracle and PostgreSQL) are the same.
    My app should retrieve all data from both databases and compares them.(Fetch 0-1000 rows, then compare it, fetch 1000-2000 rows then compare it, ...)
    That should be an Java app based on SmartGWT to make sure my app will work equally to both databases.

    Outcome should be ".jar" file, which would do all the work and would create one output file (report.html) when it's triggered.
    This would make testing easier. So I just need a smartGWT server code(library).

    Is it possible to do what I want?

    To export application as a java application, I must have one main class.
    I need something like
    Code:
    package com.smartgwt.sample.server.listener;
    
    import com.isomorphic.datasource.DSRequest;
    import com.isomorphic.datasource.DSResponse;
    import com.isomorphic.datasource.DataSource;
    
    public class MainClass {
        public static void main(String[] args) throws Exception {
            DSRequest request = new DSRequest("TABLE_1", DataSource.OP_FETCH);
            DSResponse response = request.execute();
            //Do some job.....
        }
    }
    Then I have to somehow export whole "project" as ".jar" file.

    Am I on the right track?

    Best regards
    Pavo
    Last edited by pavo123; 12 Apr 2019, 06:45.

    #2
    Please see the Standalone DataSource Usage topic in the docs. This subject is covered in some depth there.

    Comment


      #3
      Exactly what I was looking for! Thank you :)

      Comment

      Working...
      X