jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg" <stefan.guggisb...@gmail.com>
Subject Re: About the parameter config of Mysql autoReconnect
Date Fri, 17 Nov 2006 08:49:24 GMT
On 11/17/06, wendy Lee <hawkliwend@gmail.com> wrote:
> Any one can help me how to config the parameter of MySql autoReconnect in
> > Jackrabbit.Thank you!
> >
>
>

you just have to append "?autoReconnect=true" to the jdbc url in your
repository.xml/workpsace.xml.

The following is a fragment from a sample configuration using MySQL:

     <PersistenceManager
class="org.apache.jackrabbit.core.persistence.db.SimpleDbPersistenceManager">
         <param name="driver" value="com.mysql.jdbc.Driver"/>
         <param name="url" value="jdbc:mysql:///test?autoReconnect=true"/>
         <param name="schema" value="mysql"/>
         <param name="schemaObjectPrefix" value="${wsp.name}_"/>
         <param name="externalBLOBs" value="false"/>
     </PersistenceManager>


cheers
stefan

Mime
View raw message