Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


You can now just create a InitialContext with the no-args constructor to have access to it.

titleMultiple JNDI providers

If you are running your application in a context in which there already is a JNDI provider installed (for instance in a web application) you can tell Hibernate to perform lookups in a specific JNDI environment instead by setting the hibernate.jndi.class property to in Hibernate's configuration instead.

API way: Creating the datasources