-->
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.  [ 2 posts ] 
Author Message
 Post subject: Why SessionFactoryImpl not gc?
PostPosted: Fri Jun 20, 2008 3:01 am 
Newbie

Joined: Thu Nov 08, 2007 4:24 am
Posts: 3
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.2

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html


Connection is provided by c3p0 connection pool version 0.9.

i create a SessionFactory, and create many Session objects,and close all of them except one, When i create the SessionFactory second time because of java entity class changed,i find that the un-close session create used the first SessionFactory with the SessionFactory not gc,
the SessionFactoryImpl is not gc because the un-closed Session references it ,but which object reference the Session?

can some one tell me the reason


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 22, 2008 5:38 am 
Newbie

Joined: Thu Nov 08, 2007 4:24 am
Posts: 3
no one knows?


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

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.