on-internet
← Community

jdbc connectTimeout vs jdbc loginTimeout

Stack Overflow ·

There is a requirement in our project to support 'jdbc timeout' feature for Postgres (Postgresql driver). we also support Microsoft SQL (JTDS driver) and MySQl (mysql driver). So i want to introduce the 'loginTimeout' as a common feature for all the Databases. While going through documentation of the drivers, i found there is a jdbc parameter called 'loginTimeout' supported from both JTDS and Postgresql drivers but not for Msql http://jtds.sourceforge.net/faq.html loginTimeout (default - 0 for TCP/IP connections or 20 for named pipe connections) The amount of time to wait (in seconds) for a su

Comments

Sign in or sign up to comment and upvote.

No comments yet.