-->
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.  [ 4 posts ] 
Author Message
 Post subject: How To Make Connection Time Out Not To Happen
PostPosted: Thu Sep 23, 2010 9:27 am 
Newbie

Joined: Wed Aug 04, 2010 2:20 pm
Posts: 5
Hi,
In Hibernate is possible to MAKE the time out NOT to happen for the connection?.

We are NOT using the connection pool for creating the connection.We are using normal Hibernate to create the connection.

<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://xxxxxx:xxxx/xxxxxxx</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">la6bicro</property>
<property name="hibernate.connection.pool_size">10</property>
<property name="current_session_context_class">thread</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.MySQL5InnoDBDialect</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<property name="connection.autoReconnect"> true</property>

Regards,
Uvaraj S.


Top
 Profile  
 
 Post subject: Re: How To Make Connection Time Out Not To Happen
PostPosted: Thu Sep 23, 2010 10:41 am 
Beginner
Beginner

Joined: Thu Dec 11, 2008 8:18 am
Posts: 35
set hibernate.c3p0.timeout to zero. it will never time out.


Top
 Profile  
 
 Post subject: Re: How To Make Connection Time Out Not To Happen
PostPosted: Fri Sep 24, 2010 12:34 pm 
Newbie

Joined: Wed Aug 04, 2010 2:20 pm
Posts: 5
U are right but we are NOT using c3po connection polling.Is there any way to achieve it without connection pooling?.


Top
 Profile  
 
 Post subject: Re: How To Make Connection Time Out Not To Happen
PostPosted: Sun Sep 26, 2010 12:18 pm 
Beginner
Beginner

Joined: Thu Dec 11, 2008 8:18 am
Posts: 35
There are lots of open source connection pool in java.
You can check with them, how to configure with hibernate.
Plz update if you find any way.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.