-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin,

Martin wrote:
| I see autoReconnect functionality in mysql-connector-java-5.1.6.tar.gz
| driver distro located at
| http://ftp.plusline.de/mysql/Downloads/Connector-J/

Why not just go to the canonical source? MySQL's website has everything
you need.

| I dont see autoreconnect supported in
| mysql-connector-java-3.0.15-ga-bin.jar
| $MYSQL_HOME/mysql-connector-3.0.15-GA>grep -S -l autoreconnect *.*
|
http://drc-dev.ohiolink.edu/browser/fedora-core/trunk/lib/mysql-connector-java-3.0.15-ga-bin.jar?rev=56


You should try the "-i" switch. Or, you could save yourself a lot of
time and read the documentation:

http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-configuration-properties.html

The autoReconnect feature has been in the driver since version 1.1,
which was before it was called Connector/J. The documentation says:

"
The use of this feature is not recommended, because it has side effects
related to session state and data consistency when applications don't
handle SQLExceptions properly, and is only designed to be used when you
are unable to configure your application to handle SQLExceptions
resulting from dead and stale connections properly.

Alternatively, investigate setting the MySQL server variable
"wait_timeout" to some high value rather than the default of 8 hours.
"

(paragraph break added by me).

| FWIW

Very little, in fact. :(

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhfvjYACgkQ9CaO5/Lv0PCbyQCbBqWluOesJIafZ/VL/qERdUlN
BHIAoIWt2hviLMSePjKPoHE0fKnsZgjs
=6zbw
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to