• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC QueryTimeout and Databases

 
Rahul Bose
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

java.sql.Statement.QueryTimeout() times out the jdbc call if the db query takes more than the specified time. But can anybody tell me whether the query is terminated at the Database level or not ? Is it possible that the call timesout but the query continues to run on the DB ?

Thanks in advance,
-r
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34218
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rahul,
Welcome to JavaRanch!

The query does continue on the database. I don't know of any databases that have an automatic query kill.
 
Rahul Bose
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You. Yes it *does not* timeout at least in db2.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic