-->
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 Timeout
PostPosted: Wed Sep 26, 2007 6:54 am 
Newbie

Joined: Mon Sep 24, 2007 11:46 am
Posts: 2
Hi, i have a problem that i want to now best maner to resolve it.
My problem(by the way sorry for my english):

I have to maintain an app that uses hibernate 2.0. This app is using two databases, one in local ( hypersonic ) and one in remote ( MS SQL Server 2000 )

Recently we have suffering lock problem in some tables with high concurrence. To solve this we accord with our clients to reduce the response of the JDBC connection timeout.

In Query interface we have a method to put a timeout for the QueryImpl when i use the createSQL from session. But when i use methods like session.update(Object) i cant find any way to input some timeout for this operations.

I read about the c3p0 implementation but i no want to use a connection pool in this application.

Exists any other way to input a timeout in the session or session factory to make that all database operations have a timeout?

Thks in advance for your help.
Cheers.


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.