jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Edelson <justinedel...@gmail.com>
Subject Re: Workspace creation and configuration programmatically, possible?
Date Sat, 21 Aug 2010 21:32:08 GMT
The Workspace configuration in repository.xml is used as a template for any newly-created workspace.
Do you want to use postgres for all workspaces or only some? The former is just a matter of
changing the template. The latter would be tricky, but might be doable, depending on the details.


On Aug 21, 2010, at 4:48 PM, john <mynath@free.fr> wrote:

> Hi,
> I'm trying to create a workspace in my repository with a different 
> persistence manager than the default which use Derby DB.
> workspace.createWorkspace("thename"); works fine, but how I can do to 
> change that in workspace.xml (before initialization)only using Java code?
> <PersistenceManager 
> class="org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager">
>          <param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/>
>          <param name="schemaObjectPrefix" value="${wsp.name}_"/>
>        </PersistenceManager>
> I want to use :
> org.apache.jackrabbit.core.persistence.bundle.PostgreSQLPersistenceManager
> If it's not possible to affect one different value for each working set, is 
> there a way to change the default value when repository is not yet 
> initialized/created ?
> Thanks

View raw message