According to the documentation TitanFactory.open()
takes either the name of a config file or the name of a directory to open or create a database in.
If what steven says is true, there would be two ways to connect to the database with a BerkelyDB backend:
Start the database through
bin/titan.sh
. Connect to the database through the rexster console.DON'T start the database using
bin/titan.sh
. Use the gremlin console instead:TitanFactory.open("database-location")
. This will open the database. But this does not have a rexster server. Nothing else will be able to access the database but the gremlin console.