InterviewSolution
Saved Bookmarks
| 1. |
Why do we have JDBC and JNDI in J2EE? How are they different from each other? |
|
Answer» JDBC or Java DATABASE Connectivity PROVIDES guidelines and APIs for connecting databases from different vendors like MySQL, Oracle, PostgreSQL etc for GETTING data. JNDI (Java Naming and DIRECTORY Interface) helps in providing logical structure to retrieve a resource from the database, EJB beans, messaging queues etc without knowing the actual host address or port. A resource can be registered with JNDI and then those registered application components can be accessed using the JNDI NAME. |
|