I've created an executable Jar file instantiating the 2023-10 version of the INFOR JDBC driver.
My team members can either submit a single SQL file or a directory of SQL files to execute.
We occasionally have a glitch where a two-minute query will hang for an hour. The only way for me to kill the process is to log onto the server, find the PID of the java and kill it, not a good solution.
I would like to set the timeout out of 5 minutes on the statement and not the connection as I may execute 1 or many SQL files, I want to reuse the connection between statements.
It doesn't seem the standard timeout works with your driver as I've set the "Statement.setQueryTimeout" at 30 seconds (for testing purposes) for queries taking 45 to 90 seconds. In each case the SQLTimeoutException or a SQLException is never thrown.
Is there something in the below code I need to change to correctly interact with your driver?


Thank you.