whats is mean by jndi

Answers were Sorted based on User's Feedback



whats is mean by jndi..

Answer / abhinandan

JNDI is used to create instances of object and passing a
reference of the object to the server.Through JNDI one can
access the particular object through an unique name
associated with the particular Object. Eg

Hashtable ht = new Hashtable();
ht.put("Context.InitialContext","---");
ht.put("URL.ProviderURL","t3://localhost:1099/");
Context cntx = new InitialContext(ht);
DataSource ds =(DataSource)cntx.lookup("TestDataSource");
Connection con = ds.getConnection();

Is This Answer Correct ?    9 Yes 0 No

whats is mean by jndi..

Answer / mahendar

JNDI is an naming registry.Using JNDI you can get SQL
Connection,mail connection.

Is This Answer Correct ?    3 Yes 0 No

whats is mean by jndi..

Answer / gokul d

jndi stands for java naming directory interface....it has
two methods ie naming.lookup(url) and naming.bind
(host,server) used in networking as well in EJB.

Is This Answer Correct ?    2 Yes 0 No

whats is mean by jndi..

Answer / siva prasad

Java Naming Domain Interface

Is This Answer Correct ?    2 Yes 14 No

Post New Answer

More Advanced Java Interview Questions

What are the ways to define classes that can be run as threads?

1 Answers   KPIT,


Are there books about seam?

0 Answers  


How to deploy Jar, War files in J2EE?

0 Answers   HCL,


can any one tell me how to learn good coding techniques

3 Answers  


What are the different types of exception?

0 Answers  






diff between jsp include directive and jsp action include?

4 Answers   SolutionNET,


what is the life cycle of jsp?

1 Answers   HCL, ITC Infotech,


What is the difference between RMI registry and OS Agent?

0 Answers  


What restrictions are placed on the values of each case of a switch statement?

0 Answers  


What’s jboss jbpm?

0 Answers  


what do u mean by java bean??

2 Answers   ADP,


What is permgen or permanent generation?

0 Answers  


Categories