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 is the name of the state, when a thread is executing?

4 Answers  


What invokes a thread?s run() method?

2 Answers  


what is Bootstrap loader program?

1 Answers   Rossell Techsys,


What event results from the clicking of a button?

0 Answers  


What are the steps to write p-to-p model application?

0 Answers  






What are the states associated in the thread?

3 Answers  


What is a sessionfactory? Is it a thread-safe object?

0 Answers  


If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

0 Answers  


Why do I get a duplicate name error when loading a jar file?

0 Answers  


How are the elements of a borderlayout organized?

0 Answers  


Do I have to use jsps with my application?

0 Answers  


which type of objects reference will be given to client?

0 Answers  


Categories