> Sorry. don't mistake.
>
> I am new to java.
>
> what I mean is, how performance is increased by the
> keeping the db open always ?
>
> thanks...
Ah. How.
Well there is a certain amount of overhead associated with creating and destroying the sockets that often underlie database connections. There is also some overhead to do with steps like user authentication from the database side of things.
All of this overhead is a non-issue when you re-use connections through a connection pool.