JAVA Initializing database environment
<p><br>
I am using berkeley database. You should open an environment (it is just some files in order to support locking etc) once and then using that environment open your database files...<br>
The problem here is that Environment should be created once..   </p>

<p>Having globals is considered bad idea...  </p>

<p>What is the best practice to have it created one time only ?  </p>

<p>Should i use Singleton pattern (enum implementation) or static , or another solution?  </p>
