I fail to understand why someone would use JNDI.
Can someone high light the major reasons to use JNDI for datasources?
I fail to understand why someone would use JNDI.
Can someone high light the major reasons to use JNDI for datasources?
It allows the configuration of resources to be done outside of the code. Before JNDI we use to use config files and have everything in there. With JNDI the developers of the code do not need to be aware of the configuration parameters of a database or queues.
Central management and configuration. It is not the responsibility of the application to wire up the database connection.