In this page:
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();
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.