I'm trying to setup ObjectDB. I am able to create a database and view it with the explorer, using the embedded-server mode to be able to keep the explorer open while running my program. This all works fine, when my database is in the $objectdb/db/
directory.
However, I'd like to be able to do this when my database is in another directory (thus not in $objectdb/db/
). When I'm not using the explorer, the database looks fine. I can also open the explorer to view the database. But... I can not keep the connection to my database open in the explorer while running my program (and thus making changes to the database).
What I have tried/have been thinking about:
The database and the explorer have to use the same .conf file. I think the explorer uses the conf file in the
$objectdb
home directory, but I can't figure out how to configure my database in the other directory to listen to that conf file, too. How can I create a project (or database) specific conf file for a database that's not in the$objectdb
home directory?
In general it feels strange to me that there would be one conf file for all your ObjectDB databases.I copied both the
explorer.exe
andobjectdb.conf
to the directory my database is in, hoping this would work. However, nothing happens when I try to run the exe file. I think this is because the exe (and theexplorer.jar
, tried that one, too) rely onobjectdb.jar
, but I couldn't find that anywhere. I foundobjectdb-2.7.1_01.jar
and copied that into the directory the database and explorer were in, but that didn't help.
As for an MWE, I followed this tutorial, using IntelliJ.