Hi,
you can use "Connection.isClosed()". With MaxDB this will send a ping request to the
database server.
public boolean isClosed()
throws SQLExceptionTests to see if a Connection is closed.
Returns:
true if the connection is closed; false if it's still open
Throws:
SQLException - if a database access error occurs
Regards,
Marco
----------------------------------------------
Marco PASKAMP
MaxDB, Berlin
> -----Original Message-----
> From: Miroslav Halas [mailto:[EMAIL PROTECTED]
> Sent: Samstag, 8. Mai 2004 10:55
> To: [EMAIL PROTECTED]
> Subject: JDBC Connection check statement
>
>
> I apologize because I know this question was asked before but
> I search
> through the whole mailing list and cannot find the answer. What is a
> good/fast statement to use to check if the connection (e.g.
> from pool)
> is still valid?
>
> Thanks in advance,
>
> Miro
>
>
>
>
> --
> MaxDB Discussion Mailing List
> For list archives: http://lists.mysql.com/maxdb
> To unsubscribe:
> http://lists.mysql.com/[EMAIL PROTECTED]
>
--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]