Uploaded image for project: 'InsightEdge Platform'
  1. GS-13617

JDBC - adding gs.lookup_tx.locators property doesn't affect the url

    Details

    • Type: Bug
    • Status: Deactivated
    • Priority: Medium
    • Resolution: Unresolved
    • Affects versions: None
    • Fix versions: None
    • Labels:
      None
    • Platform:
      All
    • Sprint:
    • Edition:
      Premium

      Description

      In this page:
      https://docs.gigaspaces.com/xap/12.3/dev-java/jdbc-driver.html#transaction-support
      We are writing that it is possible to add properties to the space url.
      But adding the locators using this code:
         Properties props = new Properties();
         props.put("gs.lookup_tx.locators", "yuval-pc:4174");
         conn = DriverManager.getConnection(url,props);
      Doesn't affect the url.

      The workaround is to add it explicitly to the url:
      String url = "jdbc:gigaspaces:url:jini://*/*/mySpace?locators=yuval-pc:4174";

      Same goes with gs.lookup_tx.groups property.
         

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Yuvald Yuval Dori (Inactive)
              Participants of an issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: