jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karianne Berg <ke...@start.no>
Subject RE: H2PersistenceManager
Date Sat, 19 Apr 2008 10:24:26 GMT
Hello,

Thank you for your help, now it works. However, the javadocs for H2PersistenceManager says
this:

public class H2PersistenceManager
extends BundleDbPersistenceManager

Extends the BundleDbPersistenceManager by H2 specific code. 

Configuration:
<param name="bundleCacheSize" value="8"/> 
<param name="consistencyCheck" value="false"/> 
<param name="minBlobSize" value="16384"/> 
<param name="driver" value="org.hsqldb.jdbcDriver"/> 
<param name="url" value="jdbc:hsqldb:file:${wsp.home}/db/itemState"/> 
<param name="user" value="sa"/> 
<param name="password" value=""/> 
<param name="schema" value="native"/> 
<param name="schemaObjectPrefix" value=""/> 
<param name="errorHandling" value=""/> 
<param name="setLockTimeout(String) (String) lockTimeout}" value="10000"/>

I just copied my configuration from here. Perhaps someone should update the javadocs.

Best regards,
Karianne Berg



-----Original Message-----
From: Thomas Mueller [mailto:thomas.tom.mueller@gmail.com] 
Sent: Friday, April 18, 2008 11:00 PM
To: users@jackrabbit.apache.org
Subject: Re: H2PersistenceManager

Hi,

You have used the persistence manager for the H2 database, but in the
database URL you have used HSQLDB. Those are two different databases.

H2: http://www.h2database.com
<PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.H2PersistenceManager">
    <param name="driver" value="org.h2.Driver"/>
    <param name="url" value="jdbc:h2:file:${wsp.home}/db/itemState"/>

HSQLDB: http://www.hsqldb.org
<PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager">
    <param name="driver" value="org.hsqldb.jdbcDriver"/>
    <param name="url" value="jdbc:hsqldb:file:${wsp.home}/db/itemState"/>

Regards,
Thomas


Mime
View raw message