Skip to content

Commit

Permalink
Configured MODE to persist indexes to disk
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs6f committed Feb 3, 2013
1 parent 30af5c2 commit be04455
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 41 deletions.
2 changes: 2 additions & 0 deletions pom.xml
Expand Up @@ -195,6 +195,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>generate-sources</phase>
Expand Down Expand Up @@ -245,6 +246,7 @@
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.8.v20121106</version>
<configuration>
<scanIntervalSeconds>2</scanIntervalSeconds>
<webApp>
Expand Down
10 changes: 10 additions & 0 deletions src/main/resources/my_repository.json
Expand Up @@ -10,6 +10,16 @@
"clusterName" : "modeshape",
"channelConfiguration" : "${fcrepo.modeshape.jgroups.configuration:jgroups-modeshape.xml}"
},
"query" : {
"enabled" : true,
"rebuildUponStartup" : "if_missing",
"indexStorage" : {
"type" : "filesystem",
"location" : "${fcrepo.modeshape.index.location:indexes}",
"lockingStrategy" : "native",
"fileSystemAccessType" : "auto"
}
},
"storage" : {
"cacheName" : "FedoraRepository",
"cacheConfiguration" : "infinispan_configuration.xml",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/spring/activemq.xml
Expand Up @@ -72,7 +72,7 @@
http://activemq.apache.org/persistence.html
-->
<persistenceAdapter>
<kahaDB directory="${activemq.data}/kahadb"/>
<kahaDB directory="ActiveMQ/kahadb"/>
</persistenceAdapter>


Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/logback.xml
Expand Up @@ -8,7 +8,7 @@
<logger name="org.fcrepo" additivity="false" level="DEBUG">
<appender-ref ref="STDOUT"/>
</logger>
<logger name="org.modeshape" additivity="false" level="INFO">
<logger name="org.modeshape" additivity="false" level="DEBUG">
<appender-ref ref="STDOUT"/>
</logger>
<logger name="org.apache.abdera" additivity="false" level="DEBUG">
Expand Down
39 changes: 0 additions & 39 deletions src/test/resources/my_repository.json

This file was deleted.

0 comments on commit be04455

Please sign in to comment.