It is the job of the application server (Websphere, JBoss, etc.) to manage the connection pool. Hibernate just interacts with the pool created and managed by the appserver.
Is there a compelling reason to shut down the connections when the application stops? The appserver believes the answer is no, because other applications (still running) on the appserver can (if they are configured to do so) still make use of them. Likewise, should your application restart (within the already running appserver), it can make use of the pool as well.
|