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
Why do threads block on i/o?
What are the call back methods in entity bean?
cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..
Name the class that is used to bind the server object with RMI Registry?
How to deploy Jar, War files in J2EE?
What is clustering? What are the different algorithms used for clustering?
What is chat area? Explain.
what is a non-repeatable read?
Why does the option tag render selected=selected instead of just selected?
What are the pros and cons of detached objects?
In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?
wahts is mean by dynavalidatorform in struts/
what is handle?
What is scalable, portability in the view of J2EE?
What is table mutation and how do you avoid it?