How do you create connections for number of users, if you
want to improve performance?

Answer Posted / sachin s

YES, Just to add, what connection pooling is....In
connection pooling, after a connection is created, it is
placed in the pool and it is used over again so that a new
connection does not have to be established. If all the
connections are being used, a new connection is made and is
added to the pool. Connection pooling also cuts down on the
amount of time a user must wait to establish a connection
to the database.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is servlet configuration?

531


How can you run a servlet program?

601


What is the directory structure of a war file?

713


What is difference between jsp and servlet?

646


What are all the advantages of servlet over cgi?

608






What is the difference between Server and Container?

618


What are the key methods that are involved in processing of http servlets?

626


How do I support both get and post from the same servlet?

696


What is the difference between encodeRedirectUrl and encodeURL?

605


What is the difference between a generic servlet and http servlet?

525


What is the difference between jsp and servlet life cycle?

689


What is difference between get and post method?

572


Why don't we write a constructor in a servlet?

592


What is the process to implement doget and dopost methods?

548


Can you use javascript in servlets?

602