Thursday 28 February 2013

What is faster: JDBC or JNDI?

This is what i have found about JNDI and JDBC. 
JNDI: 

  1. This is a technology which works like a telephone directory which is used to search the name on server and data source remotely. 
  2. JNDI creates a connection pool. 
  3. Connection pool is an environment on the server where JNDI and Database encapsulated to for Type4 connectivity. 
  4. Connection parameters will be called only once during server startup. 

JDBC: 

  1. A Java API that enables Java programs to execute SQL statements. 
  2. This allows Java programs to interact with any SQL-compliant database. 
  3. JDBC is similar to ODBC, but is designed specifically for Java programs, whereas ODBC is language-independent. 
  4. JDBC was developed by Sun Microsystems. 
  5. Connection parameters will be called many times depending on the code.

JNDI is faster and efficient.

No comments:

Post a Comment