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

How do we share data using 'getservletcontext ()?

1046


What is the use of servletconfig interface?

1049


How to generate the server side programming and the advantages of it over the other languages?

1003


List some life cycle methods of a servlet.

1066


What do you mean by session tracking?

1217


Explain the jar and war files in servlet?

1104


What is servlet container?

1118


What is servlet api used for conneting database?

1228


What is the difference between forward () and sendredirect () functions in servlet? Explain

1033


If a servlet is not properly initialized, what exception may be thrown?

1184


What is the difference between Server and Container?

1252


What is ServletContext object?

1102


Whether we can get deadlock situation in servlets?

1072


Write the code to get the server information in servlet.

1062


How do cookies work in servlets?

1047