what is diff btwn JNDI&JDBC?

Answer Posted / sowji

NDI is a protocol / mechanism used to lookup data / information, resources from a SPI that obeys the JNDI format. JNDI is available for manipulating naming services and directory services only. Examples include JNDI trees of EJB Containers, LDAP Directory Servers etc...
http://java.sun.com/products/jndi/overview.html
JDBC is a database specific protocol that Database vendors support for Java Data Access.
http://java.sun.com/products/jdbc/overview.html
JNDI is used when your are trying to advertise and lookup data from a naming service or directory service and JDBC is used when you are querying / updating data in a Database server.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to bind string values in a preparedstatement?

736


Explain load blancing alogarthims in cluster??

715


What is the standard way to create threads, do initialization, etc. Within the application server? : BEA Weblogic

737


What is the difference between creating a distributed application using rmi and using a ejb architecture?

692


In what ways can a web logic servers performance be improved upon?

696


How do I use a startup class to initialize and later reference jms objects? : BEA Weblogic

720


Explain what an application server does and it's major components.

715


Can you explain how can os authentication be connected with weblogic jdriver for oracle and connection pools?

716


What is meant by session replication?

753


What is Graphic mode?

800


Why do I get an exception when trying to find a connection factory? : BEA Weblogic

760


How Can Cluster Communication Occur ?

774


Must my bean-managed persistence mechanism use the weblogic jts driver? : BEA Weblogic

700


What is a machine?

749


What is the tree view pane in the web logic server?

713