Although, a bit confusing:
I set the database path in basexgui to match the value in web.xml
( The setting is commented out, but I assumed that was because it was the default value. )
<context-param>
<param-name>org.basex.dbpath</param-name>
<param-value>WEB-INF/data</param-value>
</context-param>
But web app couldn’t see the database I created there.
I moved created DB directory from webapp/basex/WEB-INF/data/ into webapp/basex/data/ and restarted,
And the webapp finds it there.
Nevermind. I couldn’t find it on my first hour of searching the docs.
Then I found it 5 minutes after asking for help!
— Steve M.
I’ve been learning and testing basex with the default MacOS home-brew installation.
For production, I’m planning on using the war file served using tomcat.
I would like to use the basex command line client and BaseXGUI to do some initial setup and testing on the tomcat web app databases.
Is there a java property setting or other way to set the data directory location for these programs ?
Or do I have to set these paths in ~/basex/.basex file .
The latter is not ideal, as I may need to run update scripts from different user cron jobs, so I’ld rather not depend on home directory.
— Steve Majewski