These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Dispose Configuration
PostPosted: Mon Apr 23, 2007 12:07 pm 
Newbie

Joined: Mon Apr 23, 2007 10:08 am
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.