Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding JMS indexer, configured to use fuseki
- Loading branch information
Showing
3 changed files
with
56 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
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,50 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:context="http://www.springframework.org/schema/context" | ||
xmlns:lang="http://www.springframework.org/schema/lang" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | ||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd | ||
http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.0.xsd"> | ||
|
||
<!-- sparql-update indexer --> | ||
<bean id="sparqlUpdate" class="org.fcrepo.indexer.SparqlIndexer"> | ||
<!-- base URL for triplestore subjects, PID will be appended --> | ||
<property name="prefix" value="http://localhost:${port:8080}"/> | ||
|
||
<!-- fuseki --> | ||
<property name="queryBase" value="http://localhost:${fuseki.port:3030}/test/query"/> | ||
<property name="updateBase" value="http://localhost:${fuseki.port:3030}/test/update"/> | ||
<property name="formUpdates"> | ||
<value type="java.lang.Boolean">false</value> | ||
</property> | ||
</bean> | ||
|
||
<!-- Message Driven POJO (MDP) that manages individual indexers --> | ||
<bean id="indexerGroup" class="org.fcrepo.indexer.IndexerGroup"> | ||
<property name="repositoryURL" value="http://localhost:${port:8080}/rest" /> | ||
<property name="indexers"> | ||
<set> | ||
<ref bean="sparqlUpdate"/> | ||
</set> | ||
</property> | ||
</bean> | ||
|
||
<context:property-placeholder/> | ||
|
||
<context:annotation-config/> | ||
|
||
<!-- ActiveMQ queue to listen for events --> | ||
<bean id="destination" class="org.apache.activemq.command.ActiveMQTopic"> | ||
<constructor-arg value="fedora" /> | ||
</bean> | ||
|
||
<!-- and this is the message listener container --> | ||
<bean id="jmsContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer"> | ||
<property name="connectionFactory" ref="connectionFactory"/> | ||
<property name="destination" ref="destination"/> | ||
<property name="messageListener" ref="indexerGroup" /> | ||
<property name="sessionTransacted" value="true"/> | ||
</bean> | ||
|
||
</beans> |
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