8 messages in com.mysql.lists.javaRe: Timing out
FromSent OnAttachments
Emily Johnson20 Feb 2002 12:03 
Taglang, Guillaume20 Feb 2002 15:22 
Emily Johnson22 Feb 2002 13:48 
Javier Bolaños Molina22 Feb 2002 14:21 
lee22 Feb 2002 14:43 
Emily Johnson22 Feb 2002 15:04 
Emily Johnson22 Feb 2002 15:10 
Mark Matthews23 Feb 2002 06:52 
Subject:Re: Timing out
From:Mark Matthews (mmat@thematthews.org)
Date:02/23/2002 06:52:27 AM
List:com.mysql.lists.java

If it hangs there, there's no database to talk to at "hostname" or it's sitting behind a firewall. The process will timeout at your operating system's socket timeout (which is usually between 1 minute and 5)

-Mark

Hi Tagland,

Thank you for taking the time to answer my questions. However... I find that the process got hung up at

con = DriverManager.getConnection("jdbc:mysql://" + hostname + "/" + dbname + "?user=" + USERNAME + "&password=" + PASSWORD);

Are there any ways to set a time out for the above task?

Thanks.

Emily

--- "Taglang, Guillaume" <Guil@paybox.net> wrote:

Hello guys,

Hello,

What should I do to implement timeout for

connection?

Use setQueryTimeout() on Statement.

Emily =)

Guillaume

Do You Yahoo!?

Nope ;D

---------------------------------------------------------------------

Please check

"http://www.mysql.com/Manual_chapter/manual_toc.html"

before posting. To request this thread, e-mail java@lists.mysql.com

To unsubscribe, send a message to the address shown in the List-Unsubscribe header of this message. If you cannot see it, e-mail java@lists.mysql.com instead.

To unsubscribe, send a message to the address shown in the List-Unsubscribe header of this message. If you cannot see it, e-mail java@lists.mysql.com instead.