rs = pstmt.executeQuery();
I want to set timer exactly before the execute query for 15 seconds for that it should be terminated.
rs = pstmt.executeQuery();
I want to set timer exactly before the execute query for 15 seconds for that it should be terminated.
You can use this,
pstmt.setQueryTimeout(15);
rs = pstmt.executeQuery();