8 messages in com.mysql.lists.javaRe: Timing out| From | Sent On | Attachments |
|---|---|---|
| Emily Johnson | 20 Feb 2002 12:03 | |
| Taglang, Guillaume | 20 Feb 2002 15:22 | |
| Emily Johnson | 22 Feb 2002 13:48 | |
| Javier Bolaños Molina | 22 Feb 2002 14:21 | |
| lee | 22 Feb 2002 14:43 | |
| Emily Johnson | 22 Feb 2002 15:04 | |
| Emily Johnson | 22 Feb 2002 15:10 | |
| Mark Matthews | 23 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
----- Original Message ----- From: "Emily Johnson" <emil...@yahoo.com> To: "Taglang, Guillaume" <Guil...@paybox.net>; <ja...@lists.mysql.com> Sent: Friday, February 22, 2002 3:49 PM Subject: RE: Timing out
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.
__________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com
--------------------------------------------------------------------- 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.




