Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

i need connection pooling code.....from
harpreet.your@gmail.com

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by servlet context?

1222


How is a servlet implemented in code?

1120


Write a simple servlet program to print the contents of html.

1117


What are life cycle methods of a servlet?

1111


Which are the different ways you can communicate between servlets?

1051


What is cookie? Why is cookie used?

1103


What are the mechanisms used by a servlet container for maintaining session information?

1081


Explain url encoding in servlet?

1102


What is http servlet? Explain with the help of an example.

1114


Explain in brief the directory structure of a web application?

1154


What do you mean by session tracking and also explain its techniques?

1050


How to commuincate between an applet and a servlet?

1099


What are some disadvantages of storing session state in cookies?

1073


Differentiate between the get and post method

1118


what is multiple server?

2353