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
How is a java object message delivered to a non-java client?
What is JTS?
Why does the option tag render selected=selected instead of just selected?
Do you think that java should have had pointers?
Write a program to show synchronization?
What is colon_pkg_prefixes and what is its use?
What is an abstract method?
What are the different algorithms used for clustering?
What classes of exceptions may be caught by a catch clause?
What value does read() return when it has reached the end of a file?
What is ioc concept & explain it?
How would you reatach detached objects to a session when the same object has already been loaded into the session?
How to pass parameters in RMI?
What is Remote Server?
How to deploy Jar, War files in J2EE?