...
You can now just create a InitialContext with the no-args constructor to have access to it.
| Info | ||
|---|---|---|
| ||
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 |
API way: Creating the datasources
...