what is diff btwn JNDI&JDBC?

Answers were Sorted based on User's Feedback



what is diff btwn JNDI&JDBC?..

Answer / weblogic

JNDI is the directory which contains the list of objects
defined on the server. When the user requests for a
connection pool, the code would look for the object on the
JNDI and would get the requested connection pool from the
datasource.

JDBC is the one which does all the interactions with the
database. An application will lookup the JNDI to get a
connection pool for it to interact with the database.

Is This Answer Correct ?    20 Yes 4 No

what is diff btwn JNDI&JDBC?..

Answer / ashok

JDBC is used to connection from DB.
JNDI is is used in connection pooling..
In weblogic server therir will be a JNDI Tree Option..
By Using Jndi we can get Certail connections from Database
at a time..and those connection will distubute to different
people...if connection are over then their will be increment
in option inserver ...we can set taht according to our
requirment..
So final statement is in JNDI we are not going to
interact(getting connection) with Database .we will in
interact with server..
But in case of JDBC we will interact with Database directly
for gettin connection

Is This Answer Correct ?    12 Yes 6 No

what is diff btwn JNDI&JDBC?..

Answer / bhasakr

JNDI whic is used for java naming and directory interfaces
purposes,where as in the case of JDBC we can create the
connections.

Is This Answer Correct ?    5 Yes 1 No

what is diff btwn JNDI&JDBC?..

Answer / rajesh

JDBC and JNDI are two diff APIs from JEE spec

JDBC is dealing with Database connectivities

JNDI is act as an interface for many Naming services like
NIS,DNS,LDAP etc

I think the question is some what tricky

there is no similarities b/t JNDI and JDBC so obiviously no
diiference :)

Is This Answer Correct ?    10 Yes 8 No

what is diff btwn JNDI&JDBC?..

Answer / suman singh

For understanding JDBC and JNDI....we need to understand web container...web container is more similar to jvm..manager thread, security e.tc......In case of JDBC if multiple user request then object is created according to number of user. IN jdbc reuse ability of object is not possible. But in case of JNDI ..if three request is simultaneously coming from browser to web container ..then three object is created ..but when 4th ,5th ...request is coming it is use the object of previous request ..IN case of JNDI it is helpful in case of server crashes....You may be relate this topic with applet(jdbc)and servlet(JNDI).......

Is This Answer Correct ?    2 Yes 0 No

what is diff btwn JNDI&JDBC?..

Answer / 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

More Weblogic Interview Questions

Which memory space does thread stack get allocated from?

0 Answers  


What are stubs and how do they function in a web logic cluster?

0 Answers  


What do you understand by JDBC connection pool? What are the steps to create a connection pool in WebLogic?

1 Answers   IBM,


How do I provide user credentials for starting weblogic server?

0 Answers  


You are noticing a performance impact on your application and you suspect the underlying operating systemresources might be causing the issue, what steps would you take to narrow down the issue?

0 Answers  






How we can know whether proxy server up or not?

3 Answers   TCS,


What is the linux command is used to know the version of weblogic server?

8 Answers   IBM,


What is DataSource ?how can its associated with connection pools ?

4 Answers   Wipro,


The multicast ttl setting for a cluster in the weblogic admin console sets which of the values? : BEA Weblogic

0 Answers  


Which of the recommended practices to be performed in the ejbpassivate() method of a stateful session bean? : BEA Weblogic

0 Answers  


What happens if acknowledge() is called within a transaction? : BEA Weblogic

0 Answers  


What elements make up the administration console?

0 Answers  


Categories