使用方法void setQueryTimeout(int seconds)throws SQLException;が動作する可能性があります。 Oracle JDBCドライバで実行されるすべてのSQLに対してスレッド作成が行われる可能性があるため、注意して使用してください。
/**
* Sets the number of seconds the driver will wait for a
* <code>Statement</code> object to execute to the given number of seconds.
* If the limit is exceeded, an <code>SQLException</code> is thrown. A JDBC
* driver must apply this limit to the <code>execute</code>,
* <code>executeQuery</code> and <code>executeUpdate</code> methods. JDBC driver
* implementations may also apply this limit to <code>ResultSet</code> methods
* (consult your driver vendor documentation for details).
*
* @param seconds the new query timeout limit in seconds; zero means
* there is no limit
* @exception SQLException if a database access error occurs,
* this method is called on a closed <code>Statement</code>
* or the condition seconds >= 0 is not satisfied
* @see #getQueryTimeout
*/
void setQueryTimeout(int seconds) throws SQLException;
私はJavaではなく、タイムアウトの設定は問題ではありません。問題はタイムアウトに反応しています。 –
非常に申し訳ありませんが、私のせいです、私は気づいていませんでした。ネットの部分 – gokhant