To see a line in console "Connected to database:" With any other JVM version this will create a usable connection.
With version 1.6.0_29 this program will not terminate. Run supported source with one of the mentioned Microsoft SQL Server drivers. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Interrupting the thread does not work, it has to be stopped. This worked fine on all previous versions from 1.6.0_27.
Jtds vs microsoft jdbc driver driver#
Microsoft JDBC Driver 2.0 / 3.0 / 4.0 CTP 3Ĭreating a JDBC connection through Microsoft JDBC Driver 2.0, 3.0, 4.0 CTP 3, or jTDS 1.2.5 driver to a Microsoft SQL server 2008R2 database using JDK 1.6.0_29 results in an indefinite wait for a connection. Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode) Java(TM) SE Runtime Environment (build 1.6.0_29-b11)