answersLogoWhite

0

JDBC is java database API, while JNDI is java native directory API.

The main thing in here is that in a JNDI directory you're actually storing a JDBC DataSource, so, you're simply using JDBC and obtain a Connection via JNDI lookup.

In short words: JDBC is Database realm, JNDI lets you store Objects in a virtual context (the Directory) that can be local, remote (Implementation details usually don't matters).

You access this context via names, obtaining stored objects, is good to share things among different modules.

Application Servers usually have a JNDI Context for sharing global objects amon different application, Connection Poolers happen to be one of the most clear example of why sharing via JNDI is good. (Define 1 connection pooler, share between several webapps)

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Describe about JDBC architectural overview?

General JDBC Architecture consist of two layers: JDBC API - this provides the application to JDBC manager connection. JDBC driver API - this supports the JDBC manager to driver connection.


Full form of jndi in java?

JNDI stands for Java Naming and Directory Interface JNDI is an API specified in Java technology that provides naming and directory functionality to applications written in the Java programming language


What is type 4 jdbc driver?

JDBC is short for java database connectivity. There are 4 type of JDBC drivers : 1) JDBC-ODBC 2) Native-API 3) JDBC-Net 4) Native-Protocol.


What does the acronym JNDI stand for?

The acronym 'JNDI' stands for Java Naming and Directory Interface. What this refers to is the naming system for Java, a computer programming language.


What is the full form of jndi?

Java Needs Database Infomation


Is it possible while developing any software by using java can you manage database?

Yes. In Java this is done through the JDBC classes.Yes. In Java this is done through the JDBC classes.Yes. In Java this is done through the JDBC classes.Yes. In Java this is done through the JDBC classes.


List four JDBC drivers?

JDBC ODBC BridgeNative API Partly Java DriverNet Protocol full Java driverare some types of jdbc drivers


What do you understand by JDBC driver in java?

JDBC driver is an interface enabling a java application to interact with a database. To connect with individual database, JDBC requires drivers for each database.


Does jdbc come along with j2ee?

JDBC comes as part of the standard JDK & JRE set up.


What is jdbc?

JDBC stands for Java Database Connectivity . It was developed by Java soft and is a part of Java Enterprise API. JDBC is the first standardized API that allows the users to develop database front ends without continously rewriting their code. JDBC provides the ability to create robust, platform-independent application and wev-based applets, wihich can acces any database through a DBS-independent mechanism. The interaction between these application and applets with SQL data sources is done through a set of relational database objects and methods defined is the JDBC API.


Which types of JDBC drivers allows your java programs to communicate with the ODBC driver of your dbms?

JDBC - ODBC bridge


What is the use of JDBC?

JDBC stands for Java Database connectivity which is a standard java API for database. It is for database connectivity with project.