SQL timeout for JSP file?

There is a very simple jsp file, designed to test the database connection:

<%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql" %><br>
<sql:query var="tests" dataSource="MYBD"><br>
 SELECT 'Test'<br>

What is there a way to abort the waiting for a response MS-SQL query after a certain amount of time?

JavaScript cannot be used.
October 8th 19 at 00:25
1 answer
October 8th 19 at 00:27
I'm not a big specialist in Java, but maybe you can check the availability of a DBMS it is necessary to use a separate function using JDBC connection timeout-Ohm?

Find more questions by tags SQL ServerSQLJavaJSP