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

What you can do with node manager?

545


Explain the performance tuning in jdbc?

559


How do I restrict access to servlets and jsps? : BEA Weblogic

555


How to configure a DB connection pool ?

582


What is web.xml ?

555






what are the new features of Webservices 1.6 than 1.4.From the interface and implementation aspect4.

1746


What can be the reasons for server hang?

518


Where are the files placed while deploying the resource adapter in web logic server?

699


Why does for update in oracle 8 cause an ora-01002 error? : BEA Weblogic

555


How can default jvm be changed to others?

560


What are the uses of a middleware server?

543


Can the messaging bridge forward durable subscription messages between separate weblogic server 6.1 and release 7.0 or later domains? : BEA Weblogic

508


What happens when a failure occurs and the stub cannot connect to a weblogic server instance?

535


Do you know what is the purpose of t3 in weblogic server?

463


How do I identify the document type of an xml document? : BEA Weblogic

532