Answer Posted / 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 |
Post New Answer View All Answers
What is TL and its use?
why static class in java
What is the purpose of the notifyall() method?
Can you give me a simple example of using the requiredif validator rule?
What is in-memory replication?
How task's priority is used in scheduling?
what are RemoteObjects?
What is the difference between the string and stringbuffer classes?
Explain RMI Architecture?
How is a java object message delivered to a non-java client?
What are the oops concept?
Why is actionform a base class rather than an interface?
What is an abstract method?
Which javutil classes and interfaces support event handling?
Explain about local interfaces.