...
On Debian Linux systems, the typical way of setting System Properties is to update the following file:
No Format |
---|
/etc/default/tomcat7 |
Within that file, new properties can be added per the example below:
Code Block |
---|
JAVA_OPTS="${JAVA_OPTS} -Dfcrepo.modeshape.configuration=classpath:/config/file-simple/repository.json -Dfcrepo.home=/mnt/fedora-data" |
Additional information regarding the configuration of System Properties in Tomcat 7 can be found here.
...
Alternatively on Windows systems you can set the following file:
No Format |
---|
CATALINA_BASE/bin/setenv.bat (windows) |
Within that file, new properties can be added per the example below:
Code Block |
---|
set CATALINA_OPTS=%CATALINA_OPTS% -Dfcrepo.modeshape.configuration=classpath:/config/file-simple/repository.json |
Anchor | ||||
---|---|---|---|---|
|
On Debian Linux systems, one way of setting System Properties is to update the following file:
No Format |
---|
/etc/default/jetty |
Within that file, new properties can be added per the example below (note the use of JAVA_OPTIONS instead of JAVA_OPTS):
Code Block |
---|
JAVA_OPTIONS="${JAVA_OPTIONS} -Dfcrepo.modeshape.configuration=classpath:/config/file-simple/repository.json -Dfcrepo.home=/mnt/fedora-data" |
Additional information regarding the configuration of System Properties in Jetty 9 can be found here.
...
Alternatively on Windows systems you can set the following file:
No Format |
---|
{JETTY_DIST}/start.ini |
Within that file, new properties can be added per the example below:
Code Block |
---|
--exec
-Dfcrepo.home=/mnt/fedora-data
-Dfcrepo.modeshape.configuration=classpath:/config/file-simple/repository.json |
Maven jetty:run
System Properties can be set when using the Maven jetty:run plugin by passing them per the example below:
Code Block |
---|
mvn -Dfcrepo.home=/mnt/fedora-data -Dfcrepo.modeshape.configuration=classpath:/config/file-simple/repository.json jetty:run |
One-Click Run
If the One-Click Run is started from the command line, System Properties can be passed in per the example below:
Code Block |
---|
java -Dfcrepo.home=/mnt/fedora-data -jar fcrepo-webapp-jetty-console.war |
Anchor | ||||
---|---|---|---|---|
|
There are a number of configuration elements that can be optionally be set when starting the Fedora 4 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/fcrepo4-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 "fcrepo4-data" directory within the current working directory.
No Format |
---|
fcrepo.spring.configuration=<classpath:/config/spring/fcrepo-config.xml | file:/path/to/fcrepo-config.xml> |
This specifies the location of the spring context configuration for the Fedora application it defaults to a provided configuration. For more configuration options review the fcrepo-webapp-plus
supplied spring configuration.
No Format |
---|
fcrepo.modeshape.configuration=<classpath:/config/repository.json | file:/path/to/repository.json> |
This specifies the configuration for the underlying Modeshape repository and is required to be set. See other available options for this value within the source tree. Example repository.json
configurations are located within the WAR file within sub-directories under WEB-INF/classes/config. Note: this configuration file must be readable by the servlet container process.
No Format |
---|
java.io.tmpdir=</tmp on Linux, $TMPDIR on MacOSX, and %TEMP% on Windows> |
This specifies the directory for writing temp files. You may need to set this property to a larger disk/filesystem to upload large files, particularly on Linux where /tmp is sometimes on a small partition.
No Format |
---|
fcrepo.jms.baseUrl=<http://localhost:8080/fcrepo/rest> |
This specifies the baseUrl to use when generating JMS messages. You can specify the hostname with or without port and with or without path. If your system is behind a NAT firewall you may need this to avoid your message consumers trying to access the system on an invalid port. If this system property is not set, the host, port and context from the user's request will be used in the emitted JMS messages.
Note: If you have multiple instances of Fedora running, the following system properties must be set to avoid messaging port conflicts:
No Format |
---|
fcrepo.dynamic.jms.port=<default-of-61616>
fcrepo.dynamic.stomp.port=<default-of-61613> |
This specifies the ports used by the embedded JMS-based message broker, both for OpenWire and STOMP protocols.
No Format |
---|
fcrepo.velocity.runtime.log=<$fcrepo.home/velocity.log> |
The HTML template code uses Apache Velocity, which generates a runtime log called velocity.log
. By default this is placed inside fcrepo.home
, but it is possible to override the location to have it written to an alternate location.
...
Below are some common examples of these directories:
No Format |
---|
fcrepo.modeshape.index.directory |
Contains the internal Lucene index used by Modeshape/Admin Search.
No Format |
---|
fcrepo.activemq.directory |
Contains the reliable messaging information maintained by ActiveMQ.
No Format |
---|
com.arjuna.ats.arjuna.common.ObjectStoreEnvironmentBean.default.objectStoreDir
com.arjuna.ats.arjuna.objectstore.objectStoreDir |
Contain JBoss JTA transaction engine artifacts.
...