jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek" <aklim...@day.com>
Subject Re: Lookup to datasource to get DB url
Date Mon, 30 Jun 2008 10:10:10 GMT
Hi Antonio!

You can specify a JNDI data source in the url parameter, but that is
only available for DB persistence managers. See


The usage of a DbFileSystem is not required if you use a DB
persistence manager. It only stores the workspace.xml config file and
the lucene indexes, which need random access anyway, which you
typically don't have with data stored in a database. The "real" data
is stored via the persistence manager. Hence the recommended
configuration is the combination of a
org.apache.jackrabbit.core.fs.local.LocalFileSystem (storing files in
a normal file system) and a bundle db persistence manager.


On Fri, Jun 27, 2008 at 9:26 PM, MARTINEZ Antonio
<Antonio.Martinez@alcatel-lucent.com> wrote:
> Hello,
> I'm using JackRabbit with MySql. Currently I configure the db connection
> in repository.xml as
>     <FileSystem
>           class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
>           <param name="driver" value="com.mysql.jdbc.Driver"/>
>           <param name="url"
> value="jdbc:mysql://localhost:3307/emlplatform?useUnicode=true&amp;chara
> cterEncoding=UTF-8"     />
>           <param name="user" value="root" />
>           <param name="password" value="mysql" />
>           <param name="schema" value="mysql"/>
>           <param name="schemaObjectPrefix" value="J_R_FS_"/>
>     </FileSystem>
> However, in my case I need to obtain the url at deployment time. That
> information in my case is in data source mysql-ds.xml of the Jboss
> "deploy" directory.
> Is there a way to do a lookup. If I need to modify the persistence
> manager could someone point where to do it?
> Thank-you,
> Antonio

Alexander Klimetschek

View raw message