What Method and class used for Connection pooling ?
Answer Posted / deepak divvela
InitialContext ctx=new InitialContext();
Obj obj=ctx.lookup("jmdi provided alias name here");
javax.sql.DataSource ds=(javax.sql.DataSource)obj;
Connection con=ds.getConnection();
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How does a cookie work in Servlets?
What is the difference between super class & sub class?
Why parameters should be passed by reference?
What are the disadvantages of object oriented programming?
Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.
What is finalize method?
What do u mean by variable?
What does singleton class mean?
What is independent and dependent variables in research?
What is keyword in oop?
What is difference between word and integer?
Explain about procedural programming language or structured programming language and its features?
How does finally block differ from finalize() method?
How many bytes is double?
What are the application of stack?