mohammed sanaullah wrote:
zheng li wrote:i am not manage jsessionid myself.
just that i found this problem and don't understand why.
it seems that the two way of managing session id can not coexist.
Is it not that either URL Rewriting or Cookies are used for session management?
Henry Wong wrote:
zheng li wrote:
I know there are no guarantees that finalize method will run, so I don' understand why when i killed the java process, all database connections disappeared.
i don't think SimpleDataSource class has the chance to close the connections.
When a process terminates, the operating system frees all resources.
There is no need to run the GC because all allocated memory will be freed. There is no need to finalize the database connection, because the OS will close all files and network connections.
This is done for all applications, regardless of whether it is the JVM or not.
Wouter Oet wrote:No