On page http://jackrabbit.apache.org/jackrabbit-configuration.html
it say "Apache Jackrabbit needs two pieces of information to set up a runtime content repository instance:".
These are *Repository home directory*and *Repository configuration file*.
It goes on to say "These two configuration parameters are passed either directly to Jackrabbit when creating a repository instance or indirectly through settings for a JNDI object factory or some other component management system."

It fails to have a link about how to do this.

We have built a batch program that uses Jackrabbit as its temporary storage system. In a Windows environment, I want to have the immutable parts of the program stored under "Program Files" and the mutable parts somewhere else. I want to have the repository in a folder specfied at install time so I do not want to specify this location in the repository.xml file which is created during development.

At the moment, Jackrabbit can not find the repository.xml file although I have been able to tell it where the Repository Home directory is found. It copies the default repository.xml (/org/apache/jackrabbit/core/repository.xml)file into the Repository Home that I specified.
This overwrites mine.

DEBUG [main] (RepositoryFactoryImpl.java:24) - Calling init on the repository

DEBUG [main] (RepositoryImpl.java:36) - Starting repository create with 
configDir = 'file:///ADTransformTest/repository'.

DEBUG [main] (TransientRepository.java:279) - Initializing transient repository

 INFO [main] (RepositoryConfig.java:197) - Creating repository directory 
file:\ADTransformTest\repository

 INFO [main] (RepositoryConfig.java:202) - Copying configuration from 
jar:file:/C:/adtransformpf/bin/adtransform-core-jcr-1.0-SNAPSHOT.jar!/org/apache/jackrabbit/core/repository.xml
 to file:\ADTransformTest\repository\repository.xml

ERROR [main] (RepositoryImpl.java:42) - Error logging into JackrabbitAutomatic 
repository configuration failed

Ideally, I would like this specified in a properties file that is read
by Spring and fed to the main program where it could be used by the main 
program while creating the repository.


Can I specify both the folder and the config file?
I don't mind if the config file is in the immutable folder (classpath for jar files) or in the repository data folder.

--
Ron Wheeler
President
Artifact Software Inc
email: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102

Reply via email to