-->
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: SessionFactory in the context scope dies silently
PostPosted: Thu May 18, 2006 3:04 pm 
Newbie

Joined: Thu May 18, 2006 2:20 pm
Posts: 1
Hi guys,

I'm using Hibernate version 3.1.2+c3p0 0.9.0.4 with MySQL 5.18 nt. I've created a wrapper class to encapsulate a Session Factory in the context scope of a webapp. It all works fine, sessions are produced just as easy, but then, A FEW HOURS later, it all dies silently.

I've checked timeouts everywhere. The timeouts of the database are set to 8hrs, but the SessionFactory becomes unusable before that time and not so quickly for us to catch it in error. In the Hibernate config it's set to 0.

All the code is between sessionFactory.openSession() and session.close(), and session.close() is in a finally clause, so it's mandatory, it's not exhausting sessions.

Any clues?

Many thanks,
Wellington


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.