/**
 * (C) 2013 Tripwire, Inc.
 *
 * PROPRIETARY AND CONFIDENTIAL INFORMATION
 * The information contained herein is the proprietary and confidential
 * property of Tripwire, Inc. and may not be used, distributed, modified,
 * disclosed or reproduced without the express written permission of
 * Tripwire, Inc.
 *
 * Created by: dgleeson
 */

package com.broken.jdbc;

import java.sql.Connection;
import java.sql.DriverManager;
import java.util.Properties;

public class BrokenMain {
    public static void main(String[] args) throws Exception {

      Properties properties = new Properties();
      properties.setProperty( "ssl" ,  "require" );
      properties.setProperty( "password" ,  "password" );
      properties.setProperty( "user" ,  "myuser" );

      String driver = "net.sourceforge.jtds.jdbc.Driver";
      Class.forName(driver);
      String url = "jdbc:jtds:sqlserver://sqlserver/mydb";
      Connection conn = DriverManager.getConnection(url, properties);
      System.out.println("The connection did not hang");
      conn.close();
    }
}
