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

Which method is called when reference variable is passed in system.net?

2412


What do you mean by request dispatcher in servlet? Also explain its methods.

1153


Whats the advantages using servlets over using CGI?

1087


Explain the concept of ssi ?

1071


What are the important functions of filters?

1149


The code in a finally clause will never fail to execute, right?

1087


What do you mean by scope object and what are its types?

1083


What are the life cycle methods of a servlet?

1054


What is the dispatcher servlet?

986


Explain the working of service() method of a servlet.

968


Write a program to show the functionality of servlets.

1016


What are the phases of the servlet life cycle?

1134


What are some disadvantages of storing session state in cookies?

1023


Is servlet a framework?

1049


Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

1043