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

Why do we need a constructor in a servlet if we use the init method?

737


How do you design microservices?

817


What is a server side include (ssi)

772


What is servlet in web technology?

764


Define declaration.

812


What is the difference between Server and Container?

876


How can we create deadlock situation in servlet?

1066


What is Client-Server Computing?

2088


What do you mean by singlethreadmodel interface?

790


How is the get () method different from the post() method?

730


How can the session in servlet can be destroyed?

895


Is java servlet still used?

762


What methods do you use in servlet - applet communication?

795


What is a deployment descriptor?

841


how the HTML data stored in web server?

2199