i need connection pooling code.....from
harpreet.your@gmail.com
Answer / nagababu
ic--->Reference of Context
DataSource ds=(DataSource)ic.lookUp("JNDI name");
Connection con=ds.getConnection();
con.close();
Is This Answer Correct ? | 3 Yes | 0 No |
What are the various ways of session supervision in servlets?
How will you open a new page after certain interval of time (5 sec), on clicking of a button in an html page?
difference between forward and sendredirect
What is the default HttpRequest method?
What are the disadvantages of storing session state in cookies?
What is the use of request dispatcher interface?
What is difference between cookies and httpsession?
How do you load an image in a Servlet?
What is the difference between using getSession(true) and getSession(false) methods?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
Which is better approach among four(HttpSession,cookie,URL Rewriting, Hidden Fields) Session Tracking technic's ? Why ?
What are the phases of a servlet life cycle?