Why use JNDI for data sources
问题 Can anyone help explain why JNDI should be a preferred way to expose services such as a database / jms? The posts I run into all talk about the advantage of not having to load a specific driver manager, benifiting from connection pooling etc. but thats easily achievable by specifying the driver manager in a properties file and using reflection. Connection pooling can also be achieved by wiring in the right implementation into an application bean via spring or otherwise. So why would using