Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 67d7544
Showing
79 changed files
with
4,899 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
target/ | ||
.classpath | ||
.settings/ | ||
.project | ||
.metadata | ||
ActiveMQ/ | ||
FedoraRepository/ | ||
indexes/ | ||
ObjectStore/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
language: java | ||
jdk: | ||
- openjdk6 | ||
- oraclejdk7 | ||
branches: | ||
only: | ||
- master | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fcrepo ModeShape prototype parent project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
The amazing rebirth of Fedora Commons in the JCR world. | ||
|
||
[![Build | ||
Status](https://travis-ci.org/futures/ff-modeshape-prototype.png?branch=master)](undefined) | ||
|
||
```bash | ||
$ mvn clean jetty:run | ||
$ curl "http://localhost:8080/rest/describe" | ||
``` | ||
to create an object, try: | ||
|
||
``` | ||
$ curl "http://localhost:8080/rest/objects/myobject" -X POST | ||
``` | ||
and to retrieve it: | ||
|
||
``` | ||
$ curl "http://localhost:8080/rest/objects/myobject" -H "Accept: text/xml" | ||
``` | ||
|
||
To import FOXML, try: | ||
``` | ||
$ curl "http://localhost:8080/rest/foxml/myobject" --data-ascii @myfoxmlfile.xml -H "Content-type: text/xml" | ||
``` | ||
and you should see an object appear at: | ||
``` | ||
$ curl "http://localhost:8080/rest/objects/myobject" | ||
``` | ||
|
||
Before creating fedora-like namespaced nodes, you need to register a namespace: | ||
|
||
```bash | ||
curl "http://localhost:8080/rest/namespaces/asdf" -X POST | ||
``` | ||
|
||
To run clustered instances on a single machine, start by making as many copies of the project as you want instances. Then, if each project directory, launch the prototype with a different port, a la: | ||
``` | ||
$ mvn -Djetty.port=9999 clean jetty:run | ||
$ cd ../other-copy | ||
$ mvn -Djetty.port=9998 clean jetty:run | ||
``` | ||
and the instances should find each other via JGroups using TCP. | ||
|
Oops, something went wrong.