• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jTDS JDBC Driver lock timeout

 
Patrik West
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having problem setting the lockTimeout property in the connect url, e.g. like this: url = url.concat(";lockTimeout=5000").

Does anybody know how I can set the lock timout property, is this an issue with jTDS?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jTDS doesn't support a lockTimeout property as far as I am aware. You will need to set the LOCK_TIMEOUT variable on the connection directly.
 
Patrik West
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, do I do that programmatically? Do you have an example?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's one in MSDN.
 
Patrik West
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, thanks. I got it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic