File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed
fcrepo-api-x-listener/src/main/resources/OSGI-INF/blueprint
fcrepo-api-x-loader/src/main/resources/OSGI-INF/blueprint Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 15
15
<cm : default-properties >
16
16
<cm : property name =" input.uri" value =" activemq:topic:fedora" />
17
17
<cm : property name =" broker.uri" value =" tcp://localhost:61616" />
18
- <cm : property name =" fcrepo.BaseURI " value =" http://localhost:8080/fcrepo/rest" />
18
+ <cm : property name =" fcrepo.baseURI " value =" http://localhost:8080/fcrepo/rest" />
19
19
</cm : default-properties >
20
20
</cm : property-placeholder >
21
21
Original file line number Diff line number Diff line change 15
15
<cm : default-properties >
16
16
<cm : property name =" loader.host" value =" 0.0.0.0" />
17
17
<cm : property name =" loader.port" value =" 32080" />
18
+ <cm : property name =" extension.load" value =" true" />
19
+ <cm : property name =" extension.load.maximumRediveries"
20
+ value =" 60" />
18
21
</cm : default-properties >
19
22
</cm : property-placeholder >
20
23
41
44
<camelContext id =" apix-loader"
42
45
xmlns =" http://camel.apache.org/schema/blueprint" >
43
46
<routeBuilder ref =" loaderRoutes" />
44
-
47
+
45
48
<!-- Self-register the loader service as an extension -->
46
49
<route id =" load-extension" >
47
50
<from uri =" timer:register?repeatCount=1" />
48
51
<onException >
49
52
<exception >java.lang.Exception</exception >
50
- <redeliveryPolicy maximumRedeliveries =" 10" logRetryAttempted =" true" retryAttemptedLogLevel =" INFO" />
53
+ <redeliveryPolicy maximumRedeliveries =" {{extension.load.maximumRediveries}}"
54
+ logRetryAttempted =" true" retryAttemptedLogLevel =" INFO" />
51
55
</onException >
52
56
<setHeader headerName =" Content-Type" >
53
57
<constant >text/plain</constant >
54
58
</setHeader >
59
+ <setHeader headerName =" CamelHttpMethod" >
60
+ <constant >POST</constant >
61
+ </setHeader >
55
62
<setBody >
56
63
<simple >http://localhost:{{loader.port}}/load</simple >
57
64
</setBody >
58
- <to
59
- uri =" jetty:http://localhost:{{loader.port}}/load?okStatusCodeRange=200-399" />
65
+ <choice >
66
+ <when >
67
+ <simple >{{extension.load}}</simple >
68
+ <to
69
+ uri =" jetty:http://localhost:{{loader.port}}/load?okStatusCodeRange=200-399" />
70
+ </when >
71
+ </choice >
60
72
</route >
61
73
</camelContext >
62
74
</blueprint >
You can’t perform that action at this time.
0 commit comments