The example makes use of iob , a pool of connections that was created when the server was first started. If a connection is available the servlet is able to process the client's request. When the servlet closed the connection or when the servlets exits, the connection is returned to the pool for later reuse. If no more connections are available in the pool then an exception is thrown and an error message is sent back to the user. All connections in the pool are finally closed when the server is stopped.
Connection pools are an efficient way of managing a limited resource.
All rights reserved.