-->
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: connection timeout on oracle
PostPosted: Mon May 04, 2009 8:40 pm 
Newbie

Joined: Mon May 04, 2009 7:30 pm
Posts: 1
I am trying to timeout a query if my network connection should suddenly drop during the query. My client is a web service layer that is being used by a web UI, so a long delay waiting for the network connection to return is unacceptable (I should note for this scenario that the web UI and the web service layer happen to be on the same machine, and the network connection is broken somewhere between that machine and my db).

I've tried setting all different sorts of timeout properties (hibernate.timeout, hibernate.connection.timeout, hibernate.c3p0.timeout, etc), but it never seems to actually time out. It could be retrying the query on each connection in the connection pool, but it seems like there should be a way to actually time out the whole thing if I don't get a response to the query within a certain time period. I've also tried putting timeouts on the transaction and the query to no avail. My database is an oracle 10 db and I'm using the ojdbc14 driver that oracle provides. If anyone can provide any insight into what I might be missing, that would be great.

Thanks!
-jp


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.