|
|
@@ -3,18 +3,13 @@
|
|
3
|
3
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
4
|
4
|
xmlns:jms="http://www.springframework.org/schema/jms"
|
|
5
|
5
|
xmlns:amq="http://activemq.apache.org/schema/core"
|
|
6
|
|
- xmlns:tx="http://www.springframework.org/schema/tx"
|
|
7
|
6
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
7
|
xsi:schemaLocation="
|
|
9
|
8
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
|
10
|
9
|
http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-2.5.xsd
|
|
11
|
|
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
|
|
12
|
10
|
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">
|
|
13
|
11
|
|
|
14
|
|
- <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
|
15
|
|
- <property name="location" value="classpath:jdbc.properties"/>
|
|
16
|
|
- </bean>
|
|
17
|
|
-
|
|
|
12
|
+ <import resource="context-infrastructure-persistence.xml" />
|
|
18
|
13
|
|
|
19
|
14
|
<!-- JMS messaging -->
|
|
20
|
15
|
|
|
|
@@ -58,50 +53,10 @@
|
|
58
|
53
|
<bean id="simpleLoggingConsumer" class="se.citerus.dddsample.infrastructure.messaging.jms.SimpleLoggingConsumer"/>
|
|
59
|
54
|
|
|
60
|
55
|
|
|
61
|
|
- <!-- Persistence - database, Hibernate, repository implementations -->
|
|
62
|
|
-
|
|
63
|
|
-
|
|
64
|
|
- <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
|
|
65
|
|
- <property name="url" value="${hibernate.connection.url}"/>
|
|
66
|
|
- <property name="driverClassName" value="${hibernate.connection.driver_class}"/>
|
|
67
|
|
- <property name="username" value="${hibernate.connection.username}"/>
|
|
68
|
|
- <property name="password" value="${hibernate.connection.password}"/>
|
|
69
|
|
- <property name="initialSize" value="4"/>
|
|
70
|
|
- <property name="defaultAutoCommit" value="false"/>
|
|
71
|
|
- </bean>
|
|
72
|
|
-
|
|
73
|
|
- <bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
|
|
74
|
|
- <property name="dataSource" ref="dataSource"/>
|
|
75
|
|
- <property name="configLocation" value="classpath:hibernate.cfg.xml"/>
|
|
76
|
|
- </bean>
|
|
77
|
|
-
|
|
78
|
|
- <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
|
|
79
|
|
- <property name="sessionFactory" ref="sessionFactory"/>
|
|
80
|
|
- </bean>
|
|
81
|
|
-
|
|
82
|
|
- <bean id="cargoRepository" class="se.citerus.dddsample.infrastructure.persistence.hibernate.CargoRepositoryHibernate">
|
|
83
|
|
- <property name="sessionFactory" ref="sessionFactory"/>
|
|
84
|
|
- </bean>
|
|
85
|
|
-
|
|
86
|
|
- <bean id="handlingEventRepository" class="se.citerus.dddsample.infrastructure.persistence.hibernate.HandlingEventRepositoryHibernate">
|
|
87
|
|
- <property name="sessionFactory" ref="sessionFactory"/>
|
|
88
|
|
- </bean>
|
|
89
|
|
-
|
|
90
|
|
- <bean id="voyageRepository" class="se.citerus.dddsample.infrastructure.persistence.hibernate.VoyageRepositoryHibernate">
|
|
91
|
|
- <property name="sessionFactory" ref="sessionFactory"/>
|
|
92
|
|
- </bean>
|
|
93
|
|
-
|
|
94
|
|
- <bean id="locationRepository" class="se.citerus.dddsample.infrastructure.persistence.hibernate.LocationRepositoryHibernate">
|
|
95
|
|
- <property name="sessionFactory" ref="sessionFactory"/>
|
|
96
|
|
- </bean>
|
|
97
|
|
-
|
|
98
|
|
- <tx:annotation-driven transaction-manager="transactionManager"/>
|
|
99
|
|
-
|
|
100
|
|
-
|
|
101
|
56
|
<!-- External graph traversal routing service -->
|
|
102
|
57
|
|
|
103
|
58
|
<bean id="routingService" class="se.citerus.dddsample.infrastructure.routing.ExternalRoutingService">
|
|
104
|
|
- <property name="graphTraversalService" ref="graphTraversalService"/>
|
|
|
59
|
+ <property name="graphTraversalService" ref="internalGraphTraversalService"/>
|
|
105
|
60
|
<property name="locationRepository" ref="locationRepository"/>
|
|
106
|
61
|
<property name="voyageRepository" ref="voyageRepository"/>
|
|
107
|
62
|
</bean>
|
|
|
@@ -109,7 +64,6 @@
|
|
109
|
64
|
<bean id="graphTraversalService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
|
|
110
|
65
|
<property name="serviceUrl" value="rmi://localhost:1099/PathFinder"/>
|
|
111
|
66
|
<property name="serviceInterface" value="com.partner.pathfinder.api.GraphTraversalService"/>
|
|
112
|
|
- <property name="lookupStubOnStartup" value="false"/>
|
|
113
|
67
|
</bean>
|
|
114
|
68
|
|
|
115
|
69
|
</beans>
|