[EMAIL PROTECTED] wrote:
...
>         Class.forName( "org.blackdown.jdbc.AnyOldDriver" );
>         Connection con = DriverManager.getConnection( url, username, password );
>         Statement stmt = con.createStatement( "select * from JDK_RELEASES" );
> 
>         stmt.executeQuery();  // One atomic call with no way to run to !!!

> I have a spawn threads to execute the above SQL query and then allowed to
> operator to kill the thread if the query was slow. 
Can stmt.setQueryTimeout(someTimeout) help you? Your software could even
compute different timeouts depending on expected query complexity.

Pavel

Reply via email to