-->
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: Hibernate c3p0 jtds autoreconnect issue
PostPosted: Wed Jul 13, 2005 11:10 am 
Newbie

Joined: Wed Jul 13, 2005 11:00 am
Posts: 5
Hi,

I have setup hibernate for my project using hibernate 3.0.5 & c3p0. I am using MSSQL as the database and jtds as the database driver. The problem is that if due to any reason, the network connection to the database fails, and after that it is restored, two request seems to fail to connect to the MSSQL server with the error, connection reset by peer. After two failure, the connection resumes. I haven't given any settings for autoreconnect in the Hibernate.cfg.xml file. Does any settings for autoreconnect exists? I am using the HibernateUtil class as mentioned in the reference manual. What change should I do to make this class retry if the connection is broken.

Please correct me if I am doing anything wrong

Thanks,
Rajesh


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.