Commit 34d2a63e authored by acoburn's avatar acoburn
Browse files

make fedora URL configurable

parent a454cddd
# In the event of failure, the maximum number of times a redelivery will be attempted.
error.maxRedeliveries=10
# Fedora Repository location
fcrepo.baseUrl=localhost:8080/fcrepo/rest
# The connection URI used to connect to a local or remote ActiveMQ broker
jms.brokerUrl=tcp://localhost:61616
......
......@@ -71,7 +71,7 @@ public class EventRouter extends RouteBuilder {
.routeId("IdMappingEventRouter")
.log(LoggingLevel.INFO, "edu.amherst.acdc.idiomatic",
"IdMapping Event: ${headers[org.fcrepo.jms.identifier]}")
.to("fcrepo:localhost:8080/rest?preferOmit=PreferContainment")
.to("fcrepo:{{fcrepo.baseUrl}}?preferOmit=PreferContainment")
.split().xtokenize("//{{id.property}}", 'i', ns)
.transform().xpath("/{{id.property}}/@rdf:resource | /{{id.property}}/text()", String.class, ns)
.process(new IdProcessor())
......
......@@ -17,6 +17,7 @@
<cm:property name="rest.port" value="9080"/>
<cm:property name="id.property" value="dc:identifier"/>
<cm:property name="id.namespace" value="http://purl.org/dc/elements/1.1/"/>
<cm:property name="fcrepo.baseUrl" value="localhost:8080/fcrepo/rest"/>
</cm:default-properties>
</cm:property-placeholder>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment