I have a BerkeleyDB database with a .tld extension (eBay Turbolister file). Linux command 'file' confirms this is a BerkeleyDB database.
I am following the tutorial at http://download.oracle.com/docs/cd/E17277_02/html/collections/tutorial/opendbenvironment.html.
The com.sleepycat.je.Environment constructor accepts a directory, not a file. Reading a little, I found this directory is supposed to contain the database file and other files such as logs.
My question is: how do I specify the filename of the database to open - or does the database file need to have a specific filename? Second, does the file need to be in its own dir?
Some complimentary information to the answer below I found after browsing the API JavaDoc:
com.sleepycat.je.Environment has the following method that accepts a filename:
public Database openDatabase(Transaction txn,
String databaseName,
DatabaseConfig dbConfig)