I fail to understand why someone would use JNDI.
Can someone high light the major reasons to use JNDI for datasources?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.