Hi,

You probably mean using a database URL like this:
jdbc:mysql://localhost:3306/test?autoReconnect=true

Like this, the MySQL JDBC driver automatically tries to re-connects if
the connection is broken. My experience with this feature is, it
doesn't completely solve the problem. The first query after the server
is started still fails (the second succeeds however). If there was an
open transaction, it is rolled back. If autocommit is disabled, it
just doesn't work (I just tried that). Prepared statements are
invalidated (as far as I know). The autoReconnect feature may work for
web applications, but for Jackrabbit I don't think it works
transparently (at the moment). See also

http://issues.apache.org/jira/browse/JCR-576

Thomas


On 11/17/06, wendy Lee <[EMAIL PROTECTED]> wrote:
Any one can help me how to config the parameter of MySql autoReconnect in
> Jackrabbit.Thank you!
>


Reply via email to