Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Application Configuration

The Fedora 4 5 web-application supports several deploy-time, system-level configuration options. These configuration elements are set via the definition of System Properties.

...

Four means of deploying Fedora 4 5 have been verified

  • Tomcat 7 servlet container
  • Jetty 9 servlet container
  • Maven jetty:run plugin - for testing
  • One-Click Run - for testing

...

There are a number of configuration elements that can be optionally be set when starting the Fedora 4 5 web-application, noted below within brackets: <>. The only configuration element that is required to be set is "fcrepo.modeshape.configuration".

No Format
fcrepo.home=<cwd/fcrepo4fcrepo5-data>

This can be set to a path (relative to the current working directory or absolute) to which Fedora repository content will be written.  Any of the Modeshape configuration options below will default to being within this folder if unset or if set to a relative path.  If unset, content will be put in the "fcrepo4fcrepo5-data" directory within the current working directory.

...

Some common elements for Modeshape relate to the directories in which application information is persisted. As mentioned above, if no fcrepo.home property is set then application information will be persisted under the directory "fcrepo4fcrepo5-data" in the application's current working directory. There will then be several directories within "fcrepo4fcrepo5-data" that are named by default with the name of the property that can be set to configure each of those directories.

...

The standard configuration chain is as follows:

  1. fcrepo4fcrepo5/fcrepo-webapp/src/main/webapp/WEB-INF/web.xml contains a context-param element with param-name "contextConfigLocation".  The param-value points to a repository.xml which includes either the default fcrepo-config.xml or your spring configuration file (as defined by the fcrepo.spring.configuration property.
  2. Your spring configuration file contains a property repositoryConfiguration defining the location of your repository.json
  3. fedora-node-types.cnd is defined in repository.json