|
|
@@ -1,58 +1,12 @@
|
|
1
|
1
|
<?xml version="1.0"?>
|
|
2
|
2
|
|
|
3
|
3
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
4
|
|
- xmlns:jms="http://www.springframework.org/schema/jms"
|
|
5
|
|
- xmlns:amq="http://activemq.apache.org/schema/core"
|
|
6
|
4
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
7
|
|
- xsi:schemaLocation="
|
|
8
|
|
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
|
9
|
|
- http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-2.5.xsd
|
|
10
|
|
- http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">
|
|
|
5
|
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
|
11
|
6
|
|
|
12
|
|
- <import resource="context-infrastructure-persistence.xml" />
|
|
|
7
|
+ <import resource="context-infrastructure-persistence.xml"/>
|
|
|
8
|
+ <import resource="context-infrastructure-messaging.xml"/>
|
|
13
|
9
|
|
|
14
|
|
- <!-- JMS messaging -->
|
|
15
|
|
-
|
|
16
|
|
- <amq:connectionFactory id="jmsConnectionFactory" brokerURL="vm://localhost?broker.persistent=false&broker.useJmx=false"/>
|
|
17
|
|
-
|
|
18
|
|
- <amq:queue id="cargoHandledQueue" name="CargoHandledQueue" physicalName="CargoHandledQueue"/>
|
|
19
|
|
- <amq:queue id="misdirectedCargoQueue" name="MisdirectedCargoQueue" physicalName="MisdirectedCargoQueue"/>
|
|
20
|
|
- <amq:queue id="deliveredCargoQueue" name="DeliveredCargoQueue" physicalName="DeliveredCargoQueue"/>
|
|
21
|
|
- <amq:queue id="handlingEventRegistrationAttemptQueue" name="HandlingEventRegistrationAttemptQueue" physicalName="HandlingEventRegistrationAttemptQueue"/>
|
|
22
|
|
- <amq:queue id="rejectedRegistrationAttemptsQueue" name="RejectedRegistrationAttemptsQueue" physicalName="RejectedRegistrationAttemptsQueue"/>
|
|
23
|
|
-
|
|
24
|
|
- <jms:listener-container connection-factory="jmsConnectionFactory">
|
|
25
|
|
- <jms:listener destination="CargoHandledQueue" ref="cargoHandledConsumer" />
|
|
26
|
|
- <jms:listener destination="HandlingEventRegistrationAttemptQueue" ref="handlingEventRegistrationAttemptConsumer" />
|
|
27
|
|
- <jms:listener destination="MisdirectedCargoQueue" ref="simpleLoggingConsumer"/>
|
|
28
|
|
- <jms:listener destination="DeliveredCargoQueue" ref="simpleLoggingConsumer"/>
|
|
29
|
|
- <jms:listener destination="RejectedRegistrationAttemptsQueue" ref="simpleLoggingConsumer"/>
|
|
30
|
|
- </jms:listener-container>
|
|
31
|
|
-
|
|
32
|
|
- <bean id="jmsOperations" class="org.springframework.jms.core.JmsTemplate">
|
|
33
|
|
- <property name="connectionFactory" ref="jmsConnectionFactory"/>
|
|
34
|
|
- </bean>
|
|
35
|
|
-
|
|
36
|
|
- <bean id="applicationEvents" class="se.citerus.dddsample.infrastructure.messaging.jms.JmsApplicationEventsImpl">
|
|
37
|
|
- <property name="jmsOperations" ref="jmsOperations"/>
|
|
38
|
|
- <property name="cargoHandledQueue" ref="cargoHandledQueue"/>
|
|
39
|
|
- <property name="misdirectedCargoQueue" ref="misdirectedCargoQueue"/>
|
|
40
|
|
- <property name="deliveredCargoQueue" ref="deliveredCargoQueue"/>
|
|
41
|
|
- <property name="rejectedRegistrationAttemptsQueue" ref="rejectedRegistrationAttemptsQueue"/>
|
|
42
|
|
- <property name="handlingEventQueue" ref="handlingEventRegistrationAttemptQueue"/>
|
|
43
|
|
- </bean>
|
|
44
|
|
-
|
|
45
|
|
- <bean id="cargoHandledConsumer" class="se.citerus.dddsample.infrastructure.messaging.jms.CargoHandledConsumer">
|
|
46
|
|
- <property name="cargoInspectionService" ref="cargoInspectionService"/>
|
|
47
|
|
- </bean>
|
|
48
|
|
-
|
|
49
|
|
- <bean id="handlingEventRegistrationAttemptConsumer" class="se.citerus.dddsample.infrastructure.messaging.jms.HandlingEventRegistrationAttemptConsumer">
|
|
50
|
|
- <property name="handlingEventService" ref="handlingEventService"/>
|
|
51
|
|
- </bean>
|
|
52
|
|
-
|
|
53
|
|
- <bean id="simpleLoggingConsumer" class="se.citerus.dddsample.infrastructure.messaging.jms.SimpleLoggingConsumer"/>
|
|
54
|
|
-
|
|
55
|
|
-
|
|
56
|
10
|
<!-- External graph traversal routing service -->
|
|
57
|
11
|
|
|
58
|
12
|
<bean id="routingService" class="se.citerus.dddsample.infrastructure.routing.ExternalRoutingService">
|
|
|
@@ -63,7 +17,7 @@
|
|
63
|
17
|
|
|
64
|
18
|
<bean id="graphTraversalService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
|
|
65
|
19
|
<property name="serviceUrl" value="rmi://localhost:1099/PathFinder"/>
|
|
66
|
|
- <property name="serviceInterface" value="com.partner.pathfinder.api.GraphTraversalService"/>
|
|
|
20
|
+ <property name="serviceInterface" value="com.pathfinder.api.GraphTraversalService"/>
|
|
67
|
21
|
</bean>
|
|
68
|
22
|
|
|
69
|
23
|
</beans>
|