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

  • pavo123
    Exactly what I was looking for! Thank you :)

    Leave a comment:

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

    Leave a comment:

  • pavo123
    started a topic Java app based on smartGWT (.jar)

    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
    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
    Last edited by pavo123; 12th Apr 2019, 06:45.