You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Warner Onstine <wo...@vmsinfo.com> on 2008/09/25 20:08:47 UTC

what elements go with which? (repository.xml)

Sorry for being vague, but I'm unclear on the configuration options I  
have for the following setup:
- Clustered in an Oracle db
- Two Jackrabbit instances on two different machines

I assume I need  the following in the repository.xml (for each one  
respectively).
        <Cluster id="node[x]">
	  <Journal  
class="org.apache.jackrabbit.core.journal.OracleDatabaseJournal">
	    <param name="revision" value="${rep.home}/revision.log" />
	    <param name="url" value="jdbc:oracle:thin:@myhost:1521:db" />
	    <param name="user" value="user"/>
	    <param name="password" value="pw"/>
	  </Journal>
	</Cluster>

Then I know that I need this in the respective workspace.xml:
               <PersistenceManager  
class 
="org.apache.jackrabbit.core.persistence.db.OraclePersistenceManager">
     		  <param name="url" value="jdbc:oracle:thin:@myhost:1521:db" />
	          <param name="user" value="user"/>
	          <param name="password" value="pw"/>
		  <param name="schemaObjectPrefix" value="${wsp.name}_"/>
		  <param name="externalBLOBs" value="false"/>
		</PersistenceManager>

What I'm not clear on from the docs is this:
- Do I need to replace the FileSystem in the repository.xml (at the  
top level) with an OracleFileSystem?
- Do I need to replace the FileSystem in the <Versioning> tag in the  
repository.xml with one for the OracleFileSystem
- If I do this do I need to replace this with an appropriate  
PersistenceManager (again for Oracle) in the <Versioning> tag
- Do I need to replace the FileSystem in the workspace.xml (at the top  
level) with an OracleFileSystem?

Thanks again!

-warner

Re: what elements go with which? (repository.xml)

Posted by Alexander Klimetschek <ak...@day.com>.
On Thu, Sep 25, 2008 at 8:08 PM, Warner Onstine <wo...@vmsinfo.com> wrote:
> What I'm not clear on from the docs is this:
> - Do I need to replace the FileSystem in the repository.xml (at the top
> level) with an OracleFileSystem?

No, this is optional in both normal and clustering setup.

> - Do I need to replace the FileSystem in the <Versioning> tag in the
> repository.xml with one for the OracleFileSystem

No, optional as above

> - If I do this do I need to replace this with an appropriate
> PersistenceManager (again for Oracle) in the <Versioning> tag

Yes, the versioning PM must be "clusterable" as well. You can look at
the versioning as a special workspace, so you normally have the same
PM configuration as for the normal workspaces (apart from separate
location/schemaObjectPrefix).

> - Do I need to replace the FileSystem in the workspace.xml (at the top
> level) with an OracleFileSystem?

No, optional, as in question 1.

Actually it is the same as in the repository.xml: The workspace.xml is
created when a workspace is created and only used for this workspace.
The Workspace section in the repository.xml is used as a template for
new workspace.xml files. So if you want to change things for existing
workspaces, you have to modify the workspace.xml files of those
workspaces (but note that you might loose the "connection" to the data
if you point to an empty database schema for example). If you can
start from scratch (typically during development), you would delete
all workspaces (in db, in workspaces folder incl. the workspace.xml
files) and just change the repository.xml file.

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com