NOTE: The JNDI topic is to be expounded more, especially on how to create JNDI on Java code
JNDI or Java Naming Directory Interface lets you use a name that is tied up to a directory/URL. You may see some Web Server Application setup that you only need to put JNDI, then it can automatically connect like magic 🙂 . But underlying it is the real connection parameters with the real directory/URL location and all its credentials. JNDI name is like an « alias » access even if we switch to several directories/URLs and change credentials, JNDI name will remain the same and your application setup with the corresponding JNDI name wont be changed.
JNDI lookup name is just a one line of String.
Ex. « java:comp/env/jdbc/cebuCMSolutionsDb »
How is JNDI used?
JNDI is clearly explained here as quote from stackoverflow.com:
— quote —
The most common use case is to…
View original post 232 mots de plus