Skip to content

Commit

Permalink
explicitly load spring configuration. wire in the legacy atom seriali…
Browse files Browse the repository at this point in the history
…zation
  • Loading branch information
cbeer committed Jun 11, 2013
1 parent 40d9405 commit a28ac73
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
8 changes: 8 additions & 0 deletions pom.xml
Expand Up @@ -39,6 +39,10 @@
<artifactId>fcrepo-webhooks</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</dependency>
<dependency>
<groupId>com.sun.jersey.contribs</groupId>
<artifactId>jersey-spring</artifactId>
Expand Down Expand Up @@ -136,6 +140,10 @@
<artifactId>spring-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
</dependency>
<dependency>
<groupId>org.fcrepo.fixity</groupId>
<artifactId>fcrepo-fixity-corrupter</artifactId>
Expand Down
13 changes: 13 additions & 0 deletions src/main/resources/spring/atom_jms.xml
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">


<import resource="classpath:/spring/jms.xml"/>

<!-- translates events from the internal bus to JMS, in Atom format -->
<bean class="org.fcrepo.messaging.legacy.LegacyMethodEventFactory" />

</beans>
19 changes: 19 additions & 0 deletions src/main/resources/spring/master.xml
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

<!-- Master context for the test application. -->

<import resource="classpath:/spring/eventing.xml"/>
<import resource="classpath:/spring/generator.xml"/>
<import resource="classpath:/spring/repo.xml"/>
<import resource="classpath:/spring/rest.xml"/>
<import resource="classpath:/spring/transactions.xml"/>
<import resource="classpath:/spring/atom_jms.xml"/>
<import resource="classpath:/spring/optional_modules.xml"/>
<import resource="classpath:/spring/metrics_reporting.xml"/>
<import resource="classpath:/spring/policy_driven_storage.xml"/>

</beans>
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/web.xml
Expand Up @@ -9,7 +9,7 @@

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>WEB-INF/classes/spring/*.xml</param-value>
<param-value>WEB-INF/classes/spring/master.xml</param-value>
</context-param>

<listener>
Expand Down

0 comments on commit a28ac73

Please sign in to comment.