Dear Christian,
Basex Previous versions like 6.7 supported to set GLOBAL OPTION "DBPATH" by user choice, So when we are creating collections we are setting one DBPATH for one collection as per our functionality by using below sample code..
for collection1: -------------- Context context = new Context(); new Set("dbpath","dbpath1).execute(context);// Here we are setting DBPATH new CreateDB("collection1").execute(context);
for collection2: -------------- Context context = new Context(); new Set("dbpath","dbpath2).execute(context);// Here we are setting another DBPATH new CreateDB("collection2").execute(context);
But when changing Basex6.7 to Basex7.2 version, we are unable to set GLOBAL OPTION "DBPATH" . As per our R&D the DBPATH getting form one of the system property "org.basex.path", once we are set system property unable to change it as for our functionality we have to set different DBPATHS like above code....
when we are trying to set DBPATH like above code we are getting below Exception
org.basex.core.BaseXException: Global option 'DBPATH' cannot be set.
Please provide any suggestions for us..
Thanks& Regards Ramesh