This is what i have found about JNDI and JDBC.
JNDI:
JDBC:
JNDI is faster and efficient.
JNDI:
- This is a technology which works like a telephone directory which is used to search the name on server and data source remotely.
- JNDI creates a connection pool.
- Connection pool is an environment on the server where JNDI and Database encapsulated to for Type4 connectivity.
- Connection parameters will be called only once during server startup.
JDBC:
- A Java API that enables Java programs to execute SQL statements.
- This allows Java programs to interact with any SQL-compliant database.
- JDBC is similar to ODBC, but is designed specifically for Java programs, whereas ODBC is language-independent.
- JDBC was developed by Sun Microsystems.
- Connection parameters will be called many times depending on the code.
JNDI is faster and efficient.
No comments:
Post a Comment