Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Implementation for no binary content jcr/xml file system persistence. #47

Closed

Conversation

lsitu
Copy link
Contributor

@lsitu lsitu commented Jul 10, 2014

https://www.pivotaltracker.com/s/projects/684825/stories/74702010

We should be able to persist jcr/xml with no binary contents to the file system now. The location can be configured with parameter jcr.persist.dir as defined in in fcrepo-jms-indexer-webapp/src/main/resources/spring/indexer-core.xml, and the filename for the jcr/xml will be {id}-jcr.xml.

@@ -38,11 +38,17 @@
</bean>
<!-- Solr Indexer END-->

<!-- jcr/xml persistence Indexer -->
<bean id="jcrXmlPersist" class="org.fcrepo.indexer.persistence.JcrXmlPersistenceIndexer">
<property name="path" value="${jcr.persist.dir:./target/test-classes/jcrXml/}"/>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create a default value that is more suitable for production use (${java.io.tmpdir}?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about ${java.io.dir}? The persisted jcr/xml looks more like permanent storage compared to "tmp".

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My point is that we want a reasonable default value, and "./target/test-classes/jcrXml" does not seem like a reasonable default value.
Maybe: "jcrXml-storage" or the java tmp dir.

@lsitu
Copy link
Contributor Author

lsitu commented Jul 11, 2014

Okay, see lsitu@bb1f5eb.

* @author ajs6f
* @date Aug 19, 2013
*/
public class JcrXmlPesistenceIndexerTest {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix typo:
JcrXmlPesistenceIndexerTest should be "JcrXmlPersistenceIndexerTest"

@lsitu
Copy link
Contributor Author

lsitu commented Jul 15, 2014

Corrected at commit lsitu@e8894a6.

@awoods
Copy link

awoods commented Jul 24, 2014

Resolved with: b78416a

Addresses: https://www.pivotaltracker.com/story/show/74702010

@awoods awoods closed this Jul 24, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants