S
S
Shultc2012-04-11 22:42:31
Java
Shultc, 2012-04-11 22:42:31

SQL timeout for JSP file?

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

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

What is the way to interrupt waiting for MS-SQL query response after some specific time?
JavaScript cannot be used.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
da0c, 2012-04-13
@da0c

I'm not a great Java specialist, but maybe you need to check the availability of the DBMS using a separate function using JDBC with a connection timeout?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question