|
Hi,
I have an application with a dozen of users each connecting to the undelying db (oracle 9i) with a different username. So I'm using a separate SessionFactory for each user that is built when he logs into the app. When the user logs out, his SessionFactory is closed thus expecting to release all resources.
However with a simple simulative test I found out that the underlying Configuration object does not release its resources when the SessionFactory is closed which leads to outofmemory error.
Is there a way to dispose the Configuration object and release memory where the mappings are loaded?
Thanks
|