-->
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: MySql jdbc Connection lost after some time (15minutes)
PostPosted: Tue Apr 24, 2007 8:04 am 
Beginner
Beginner

Joined: Thu Jan 04, 2007 5:44 am
Posts: 26
Location: Innsbruck - Sivas(TR) - Bregenz
Hi

I use MySql with my Hibernate. I have a RCP Java application with some complex objectstructures. So I use a read session wich is open during the application and I never close it. For writing i use a session per transaction.

Now I have the problem that the connection is closed when I wait 10 or 15 minutes without a interaction with the gui.. ok i think this is so becous of this :
http://www.hibernate.org/117.html#A13

I think my problem is that i dont close the session and so my jdbc connection die. I try to add autoconnect=true to the jdbc url as prameter.. but its no use..

Exists a method to say the session.. dont close it after a time.

thx


[/url]


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 25, 2007 7:02 am 
Beginner
Beginner

Joined: Thu Jan 04, 2007 5:44 am
Posts: 26
Location: Innsbruck - Sivas(TR) - Bregenz
nobody have a idea?


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.