-->
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.  [ 6 posts ] 
Author Message
 Post subject: Missing connection Hibernate 2 + Oracle
PostPosted: Mon Nov 14, 2005 6:37 am 
Newbie

Joined: Mon Nov 14, 2005 6:28 am
Posts: 9
I'm using hibernate 2 for connect web application in oracle9ias and oracle 9 database.

When the application this inactive during a period of time, the application loses the connectivity with the database.

I have proven to modify the configuration file adding:

hibernate.connection.autoReconnect: true
hibernate.connection.autoReconnectForPools: true hibernate.connection.is-connection-validation-required: true


But it has not given result.
Some suggestion?

Thank you very much.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 14, 2005 7:08 am 
Senior
Senior

Joined: Thu Aug 04, 2005 4:54 am
Posts: 153
Location: Birmingham, UK
Use the c3p0 connection pool instead of the default hibernate connection pool which is not suitable for production use and commonly breaks after a period of inactivity.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 14, 2005 8:09 am 
Newbie

Joined: Mon Nov 14, 2005 6:28 am
Posts: 9
Thank you!!!

The application run OK with c3p0, stoping and starting database.

1000 gracias :D


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 14, 2005 8:57 am 
Senior
Senior

Joined: Thu Aug 04, 2005 4:54 am
Posts: 153
Location: Birmingham, UK
Feel free to thank me with a credit.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 14, 2005 10:10 am 
Newbie

Joined: Mon Nov 14, 2005 6:28 am
Posts: 9
Done ;)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 13, 2006 2:54 am 
Regular
Regular

Joined: Wed Apr 12, 2006 12:49 am
Posts: 105
Location: Malaysia
Hi,

Can you advice me on what is the configuration that I need to do in order to run application that uses Hibernate 3.1.3 in Oracle9i Internet application server that connects to Oracle9i database.

Please advise.
Thank you.


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