whats is mean by jndi
Answers were Sorted based on User's Feedback
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 |
Answer / mahendar
JNDI is an naming registry.Using JNDI you can get SQL
Connection,mail connection.
Is This Answer Correct ? | 3 Yes | 0 No |
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 |
What is the name of the state, when a thread is executing?
What invokes a thread?s run() method?
what is Bootstrap loader program?
What event results from the clicking of a button?
What are the steps to write p-to-p model application?
What are the states associated in the thread?
What is a sessionfactory? Is it a thread-safe object?
If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?
Why do I get a duplicate name error when loading a jar file?
How are the elements of a borderlayout organized?
Do I have to use jsps with my application?
which type of objects reference will be given to client?