We have done a few changes to Jackrabbit to use this. Now we are running on:
Filesystem:
<FileSystem
class="org.apache.jackrabbit.core.fs.db.JNDIOracleDatabaseFileSystem">
<param name="path" value="${rep.home}/repository" />
<param name="dataSourceLocation"
value="${jcr.datasource.location}" />
<param name="schemaObjectPrefix" value="global" />
<param name="schema" value="oracle" />
</FileSystem>
Where the JNDIOracleDatabaseFileSystem is a fabrication of our own and we used
a patch to be able to use ${jcr.datasource.location}, which we give in through
the system properties, ie. using -Djcr.datasource.location=/users/jcr on the
command line.
As persistencemanager we use:
<PersistenceManager
class="org.apache.jackrabbit.core.persistence.db.iorgagroup.PooledJNDIDatabasePersistenceManager">
<param name="path" value="${wsp.home}/db" />
<param name="dataSourceLocation"
value="${jcr.datasource.location}" />
<param name="schemaObjectPrefix" value="pm_def" />
<param name="schema" value="oracle" />
<param name="externalBLOBs" value="false" />
</PersistenceManager>
The class used is a class by Magnolia:
http://www.iorga.com/downloads/PooledJNDIDatabasePersistenceManager.jar
See also this page: http://wiki.apache.org/jackrabbit/JNDI.
If you need any specifics, please ask.
Hth,
Nick Stolwijk
-----Original Message-----
From: Stackleet Stackleet [mailto:[EMAIL PROTECTED]
Sent: Thu 1/17/2008 4:51 AM
To: [email protected]
Subject: JNDI Oracle and JCR
Hello All!
I want to configure my repository.xml file so that I do not have to put hard
coded in user name and password information and also my connection URL
(jdbc:oracle:...) may change. This is why I want to have Jackrabbit look this
information up via JNDI. How do I do this? What type of PersistenceManager
should I use? What type of FileSystem should I use? Also what name/binding
should I use for my connection URL for my Oracle DB?
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.