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 havi
The real benefit of JNDI over property files comes when deploying to a clustered environment. Using property files leaves the possibility of some of the server instances having a different value. When using JNDI the same value is pushed out to all of the clustered servers by the domain controller, removing the need to copy the same property file to all of the servers (and probably restarting the server/app).