Old Release

This documentation covers an old version of Fedora. Looking for another version? See all documentation.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

System Requirements

  • Java7
  • Servlet 3.0 container such as:
    • Tomcat 7
    • Jetty 8.x

Deploying with Tomcat

  1. Set the Java properties (e.g. /etc/default/tomcat7) mentioned in the following Application Configuration section 
  2. Drop the fcrepo-webapp (or your own distribution) WAR file into Tomcat's webapps directory.

Application Configuration

System config

  • fcrepo.modeshape.configuration defaults to "classpath:/config/single/repository.json"
  • fcrepo.infinispan.cache_configuration defaults to "config/infinispan/leveldb/infinispan.xml"
  • fcrepo.host defaults to "localhost"
  • fcrepo.port defaults to "8080"
  • fcrepo.ctxt defaults to "rest"
  • fcrepo.home can be set to a path (relative to the current working directory or absolute) in which fedora repository content will be written by default.  Any of the Modeshape and Infinispan 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 "fcrepo4-data" directory within the current working directory.

Modeshape and Infinispan config

-Dcom.arjuna.ats.arjuna.common.ObjectStoreEnvironmentBean.default.objectStoreDir=<some-dir>
-Dcom.arjuna.ats.arjuna.objectstore.objectStoreDir=<some-dir>
-Dfcrepo.ispn.CacheDirPath=<some-dir>
-Dfcrepo.ispn.binary.CacheDirPath=<some-dir>
-Dfcrepo.modeshape.index.location=<some-dir>
-Dfcrepo.ispn.alternative.CacheDirPath=<some-dir>
-Dfcrepo.ispn.binary.alternative.CacheDirPath=<some-dir>
-Dfcrepo.ispn.repo.CacheDirPath=<some-dir>

JMS  config

-Dfcrepo.activemq.dir=<some-dir>

Clustering config (optional)

-Djgroups.tcp.address=<ip-address>
-Dfcrepo.ispn.numOwners=<num-nodes-in-cluster>
-Djava.net.PreferIPv4Stack=true
-Dfcrepo.ispn.replication.timeout=<timeout-in-ms>
  • fcrepo.ispn.replication.timeout can be used to set the timeout of infinispan replication in a clustered environment

 

  • No labels