*** empty log message ***
[csql.git] / test / jdbc / network / Gateway / ConnTest09.java
blobfa9b3bb33d47dc149251311504c6340edfc4cc0a
1 //Test 2000 connections in jdbc:gateway://localhost:5678
2 import java.sql.*;
4 public class ConnTest09
6 public static void main(String[] args)
8 try
10 Class.forName("csql.jdbc.JdbcSqlDriver");
11 Connection con = DriverManager.getConnection("jdbc:gateway://localhost:5678", "root", "manager");
12 con.close();
13 int i;
14 for ( i=1; i <2000 ; i++)
16 con = DriverManager.getConnection("jdbc:gateway://localhost:5678", "root", "manager");
17 con.close();
19 if (i !=2000) System.exit(1); else System.exit(0);
20 }catch(Exception e) {
21 System.out.println("Exception in Test: "+e);
22 e.printStackTrace();
23 System.exit(1);