Hälløw Christian,
many thanks for your answer! I finaly came to this solution yesterday afternoon and I was answering to my question when you send your answer. I first tried to use an relative directory... until I tried an absolute one and I succeeded to pass the java system property (something like export BASEX_JM="-Dorg.basex.path=/basex/home/path").
To explain the context of our lab, we are using several instances of BaseX in the same machine (LINUX). To facilitate the administration (mainly the BaseX code update), we try to use a single BaseX repository for several sites. Each site has its own environment (data, webapp and .logs) and the basex repository is a symbolic link. We are using an APACHE HTTP server to access each BaseX with virtualhosts and proxypass configurations...
And well, it seems to work now
🤩! But if you have recommendations or other suggestions to
facilitate system administration for a BaseX cluster, we are
completly open =) Furthermore, we are not yet at the intensive
production stage. If we encounter other problems, we'll ask for
your help 😇
Many thanks to you and all the BaseX team! You're making a great job!
Greetings
Pierre-Yves and Maud
Salut Pierre-Yves,
The home directory can be specified via the Java system property “org.basex.path”. As it’s required before BaseX is even started, it must be passed on to the JDK, e.g. via “-Dorg.basex.path=/path/to/my/basex”. This string can be…
• statically added to the BASEX_JVM property in your “basexhttp” start script, or• dynamically assigned to JDK_JAVA_OPTIONS on command-line before running “basexhttp” (export JDK_JAVA_OPTIONS=...).
Hope this helps. If not, just keep on asking ;)
Merci et salutations,Christian
On Wed, Jan 24, 2024 at 5:09 PM Pierre-Yves Jallud <pierre-yves.jallud@ens-lyon.fr> wrote:
Hi all,
I would like to precise the home directory of BaseX using org.basex.path (cf. https://docs.basex.org/wiki/Configuration#Home_Directory). Is it possible to configure this when I launch the basexhttp? For exemple, something like (befor launching basexhttp):
export org.basex.path=/path/to/my/basex
Or maybe:
basexhttp -S org.basex.path=/path/to/my/basex
... or what else?
Many thanks in advance to enlighten me 😇
Pierre-Yves
PS: as you can see, I didn't use Java for a long time 😅
Pierre-Yves Jallud
Pôle Humanité Numériques / Ingénieur en ingénierie logicielle
IHRIM - UMR 5317
CNRS
ENS de Lyon
15 Parvis René Descartes - BP7000 - 69342 Lyon CEDEX 07
+33 (0)4 37 37 63 83 - pierre-yves.jallud@ens-lyon.fr