Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-1832

Change to source model connection through AdminApi using assignToModel() does not reflect in jdbc queries to that source model

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.6
    • 7.5
    • AdminApi
    • None

    Description

      When source model's connection is changed using following adminapi code;

      AdminFactory adminFactory = AdminFactory.getInstance();
      Admin admin = adminFactory.createAdmin("admin", "admin".toCharArray(), "mms://localhost:31443");
      admin.assignToModel("Sample", 1, "SQLSourceA", "SQLSourceA", "sqlserver", "SQLSourceA_2");

      Any jdbc query result would still be from the old data source. However when verified using following adminapi code;

      VDB vdb = admin.getVDB("sample", 1);
      Model m = vdb.getModel("SQLSourceA");
      String jndiName = m.getSourceConnectionJndiName("SQLSourceA");

      The jndiName shows that the connection is successfully updated.

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-rareddy Ramesh Reddy
              farrukh.ihtisham Farrukh Ihtisham (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: