Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

consolidates default configuration files for modeshape in the WAR under ... #234

Closed
wants to merge 1 commit into from

1 participant

@gregjan

...WEB-INF/classes/config

renames repository.json to modeshape.json for clarity
this makes it easier for administrators to understand the default configuration

@gregjan gregjan consolidates default configuration files for modeshape in the WAR und…
…er WEB-INF/classes/config

renames repository.json to modeshape.json for clarity
this makes it easier for administrators to understand the default configuration
4d89535
@gregjan

Taking a different approach today. Will start afresh from master. This PR can vanish.

@gregjan gregjan closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 11, 2014
  1. @gregjan

    consolidates default configuration files for modeshape in the WAR und…

    gregjan authored
    …er WEB-INF/classes/config
    
    renames repository.json to modeshape.json for clarity
    this makes it easier for administrators to understand the default configuration
This page is out of date. Refresh to see the latest.
View
38 fcrepo-webapp/src/main/resources/config/infinispan.xml
@@ -0,0 +1,38 @@
+<infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:infinispan:config:5.2 http://www.infinispan.org/schemas/infinispan-config-5.2.xsd"
+ xmlns="urn:infinispan:config:5.2">
+ <global>
+ <globalJmxStatistics enabled="false" allowDuplicateDomains="true"/>
+ </global>
+
+ <default>
+ <expiration wakeUpInterval="-1" />
+ <unsafe unreliableReturnValues="true" />
+ </default>
+
+ <namedCache name="FedoraRepository">
+
+ <eviction maxEntries="500" strategy="LIRS" threadPolicy="PIGGYBACK"/>
+
+ <transaction
+ transactionManagerLookupClass="org.infinispan.transaction.lookup.GenericTransactionManagerLookup"
+ transactionMode="TRANSACTIONAL" lockingMode="PESSIMISTIC"/>
+
+ <!-- Define the cache loaders (i.e., cache stores). Passivation is false
+ because we want *all* data to be persisted, not just what doesn't fit
+ into memory. Shared is false because there are no other caches sharing
+ this file store. We set preload to false for lazy loading; may be
+ improved by preloading and configuring eviction. We can have multiple
+ cache loaders, which get chained. But we'll define just one. -->
+
+ <loaders passivation="false" shared="false" preload="false">
+ <leveldbStore xmlns="urn:infinispan:config:leveldb:5.2"
+ fetchPersistentState="true"
+ location="${fcrepo.ispn.repo.CacheDirPath:target}/data"
+ expiredLocation="${fcrepo.ispn.repo.CacheDirPath:target}/expired">
+ </leveldbStore>
+ </loaders>
+
+ </namedCache>
+
+</infinispan>
View
42 fcrepo-webapp/src/main/resources/config/modeshape.json
@@ -0,0 +1,42 @@
+{
+ "name" : "repo",
+ "jndiName" : "",
+ "workspaces" : {
+ "predefined" : ["default"],
+ "default" : "default",
+ "allowCreation" : true
+ },
+ "query" : {
+ "enabled" : "${fcrepo.modeshape.query.enabled:true}",
+ "indexStorage" : {
+ "type" : "filesystem",
+ "location" : "${fcrepo.modeshape.index.location:target/indexes}",
+ "lockingStrategy" : "native",
+ "fileSystemAccessType" : "auto"
+ },
+ "rebuildUponStartup" : "if_missing",
+
+ "indexing" : {
+ "mode" : "${fcrepo.modeshape.query.mode:sync}"
+ }
+ },
+ "storage" : {
+ "cacheName" : "FedoraRepository",
+ "cacheConfiguration" : "${fcrepo.infinispan.cache_configuration:config/infinispan.xml}",
+ "binaryStorage" : {
+ "type" : "file",
+ "directory" : "${fcrepo.binary-store-path:target/binaries}",
+ "minimumBinarySizeInBytes" : 4096
+ }
+ },
+ "security" : {
+ "anonymous" : {
+ "roles" : ["readonly","readwrite","admin"],
+ "useOnFailedLogin" : false
+ },
+ "providers" : [
+ { "classname" : "org.fcrepo.http.commons.session.BypassSecurityServletAuthenticationProvider" }
+ ]
+ },
+ "node-types" : ["fedora-node-types.cnd"]
+}
View
2  fcrepo-webapp/src/main/resources/spring/repo.xml
@@ -13,7 +13,7 @@
<bean name="modeshapeRepofactory"
class="org.fcrepo.kernel.spring.ModeShapeRepositoryFactoryBean"
- p:repositoryConfiguration="${fcrepo.modeshape.configuration:classpath:/config/minimal-default/repository.json}"/>
+ p:repositoryConfiguration="${fcrepo.modeshape.configuration:classpath:/config/modeshape.json}"/>
<bean class="org.modeshape.jcr.JcrRepositoryFactory"/>
Something went wrong with that request. Please try again.