code: public void ejbCreate()
      {
          log.info("ejbCreate was called");
          odmg = ODMGHelper.getODMG();
          db = odmg.getDatabase(null);
      }
docs: Lookup the OJB ODMG implementation.
  It's recommended to bind an instance of the Implementation class in JNDI
  (at appServer start), open the database and lookup this instance via JNDI in
  ejbCreate().