// environment is transactional
int envFlags = Db.DB_INIT_TXN | Db.DB_INIT_LOCK | Db.DB_INIT_MPOOL;
if (create)
envFlags |= Db.DB_CREATE;
DbEnv env = new DbEnv(0);
env.open(dir, envFlags, 0);
// create the application and run a transaction
HelloDatabaseWorld worker = new HelloDatabaseWorld(env);
TransactionRunner runner = new TransactionRunner(env);
try {