The driver Manager has a method setLoginTimeout(int secs). You can use it so
that you get the Exception and throw the message to the client.

Hope this is useful to you

> ----------
> From:         Giovanni Santini SZ3PGQ[SMTP:[EMAIL PROTECTED]]
> Reply To:     A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology.
> Sent:         Thursday, July 06, 2000 3:58 PM
> To:   [EMAIL PROTECTED]
> Subject:      Timeout,servlet,JDBC connection
>
> Hello,
> when I try to connect to a database, but there isn't any DB available and
> so
> I aspect a failure.
> But this servlet that works on  Java Web 1.0.1 loop forever and I get no
> response.
> How can I do to interrupt and send a messagge of error to client?
> Hello.
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to