Hibernate does optionally interact with JNDI on the applications behalf. Generally
it does this when the application:
All of these JNDI calls route through a single service whose role is
org.hibernate.engine.jndi.spi.JndiService
. The standard JndiService
accepts a number of configuration settings
Note
The standard JndiService assumes that all JNDI calls are relative to the same InitialContext. If your
application uses multiple naming servers for whatever reason, you will need a custom JndiService
implementation to handle those details.