Hi Friends,
Suppose you have a web appliction which consists of 100
clients are connected with Connection pooling and they are
associated with 100 connection objcet and connected
with DB sever,Due some problem DB-Server suddenly crashed
and server came to down state for a while after few minutes
DB-server once again up,Now how will I manage my Pool
Management with my 100 clients...can any one tell
me??????????????????
Answer Posted / amit arora
I believe if db server suddenly crashed, then all the
connections are lost.
Also, all the sessions are expired for each and every
client.
now, when db-server is again up.
As soon as first client request for any data. (if session
tracking) then It will creates new session and create first
connection.(or get the first connection from the connection
pool). Summary- Connection pool need to be reset from
begining, and this will grow up the conections as per your
original logic.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the dispatcher servlet?
Explain jsessionid and when is it created?
Why is httpservlet declared abstract?
What are the differences between servlet context vs servlet config?
Which event is fired at the time of setting, getting or removing attribute from application scope?
Explain the difference between a web server and a web container?
What do you mean by cgi in servlet?
What’s the difference between genericservlet and httpservlet?
Why do we use sendredirect() method?
What is api in servlet?
Differentiate between the get and post method
Explain session tracking and its importance?
Is servlet a server side scripting language?
What is the servletconfig object?
What are the annotations used in servlet 3?