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 the servlet is loaded?

1010


Explain load on start-up and its importance?

1068


Is that servlet is pure java object or not?

1032


What is servlet used for?

1093


Difference between java beans & servlets?

998


What mechanisms are used by a Servlet Container to maintain session information?

1112


How can the referrer and the target urls be used in servlet?

948


What are life cycle methods of a servlet?

1007


How we can create war file in servlet?

1067


How do you define a servlet?

937


Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?

1205


How will two or three servlets interact or communicate with each other?

1396


Difference between httpservlet and generic servlets?

1042


How are filters?

994


What is new in ServletRequest interface ? (Servlet 2.4)

965