|
|
@@ -15,27 +15,24 @@
|
|
15
|
15
|
<jaxws:endpoint id="jax-ws.http" implementor="#handlingReportService" address="/ws/RegisterEvent"/>
|
|
16
|
16
|
|
|
17
|
17
|
<bean id="handlingReportService" class="se.citerus.dddsample.interfaces.handling.ws.impl.HandlingReportServiceImpl">
|
|
18
|
|
- <property name="registrationParser" ref="registrationParser"/>
|
|
|
18
|
+ <property name="applicationEvents" ref="applicationEvents"/>
|
|
19
|
19
|
</bean>
|
|
20
|
20
|
|
|
21
|
21
|
<!-- File upload directory scanner -->
|
|
22
|
22
|
|
|
23
|
23
|
<bean id="scheduledTask" class="org.springframework.scheduling.timer.ScheduledTimerTask">
|
|
24
|
24
|
<property name="period" value="5000"/>
|
|
25
|
|
- <property name="delay" value="3000"/>
|
|
|
25
|
+ <property name="delay" value="5000"/>
|
|
26
|
26
|
<property name="timerTask" ref="uploadDirectoryScanner"/>
|
|
27
|
27
|
</bean>
|
|
28
|
28
|
|
|
29
|
29
|
<bean id="uploadDirectoryScanner" class="se.citerus.dddsample.interfaces.handling.file.UploadDirectoryScanner">
|
|
30
|
30
|
<property name="uploadDirectory" value="/tmp/upload"/>
|
|
31
|
31
|
<property name="parseFailureDirectory" value="/tmp/failed"/>
|
|
32
|
|
- <property name="registrationParser" ref="registrationParser"/>
|
|
33
|
|
- </bean>
|
|
34
|
|
-
|
|
35
|
|
- <bean id="registrationParser" class="se.citerus.dddsample.interfaces.handling.RegistrationParser">
|
|
36
|
|
- <property name="systemEvents" ref="systemEvents"/>
|
|
|
32
|
+ <property name="applicationEvents" ref="applicationEvents"/>
|
|
37
|
33
|
</bean>
|
|
38
|
34
|
|
|
|
35
|
+ <bean id="handlingReportConsumptionSupport" class="se.citerus.dddsample.interfaces.handling.HandlingReportParser"/>
|
|
39
|
36
|
|
|
40
|
37
|
<bean id="timerFactory" class="org.springframework.scheduling.timer.TimerFactoryBean">
|
|
41
|
38
|
<property name="scheduledTimerTasks">
|
|
|
@@ -45,8 +42,28 @@
|
|
45
|
42
|
</property>
|
|
46
|
43
|
</bean>
|
|
47
|
44
|
|
|
48
|
|
- <!-- RMI exposed booking service facade -->
|
|
|
45
|
+ <!-- RMI exposed booking service facade, which operates in an open Hibernate session -->
|
|
|
46
|
+
|
|
|
47
|
+ <bean id="hibernateInterceptor" class="org.springframework.orm.hibernate3.HibernateInterceptor">
|
|
|
48
|
+ <property name="sessionFactory" ref="sessionFactory"/>
|
|
|
49
|
+ </bean>
|
|
49
|
50
|
|
|
|
51
|
+ <bean id="bookingServiceFacade" class="org.springframework.aop.framework.ProxyFactoryBean">
|
|
|
52
|
+ <property name="target" ref="bookingServiceFacadeTarget"/>
|
|
|
53
|
+ <property name="interceptorNames">
|
|
|
54
|
+ <list>
|
|
|
55
|
+ <value>hibernateInterceptor</value>
|
|
|
56
|
+ </list>
|
|
|
57
|
+ </property>
|
|
|
58
|
+ </bean>
|
|
|
59
|
+
|
|
|
60
|
+ <bean id="bookingServiceFacadeTarget" class="se.citerus.dddsample.interfaces.booking.facade.BookingServiceFacadeImpl">
|
|
|
61
|
+ <property name="bookingService" ref="bookingService"/>
|
|
|
62
|
+ <property name="cargoRepository" ref="cargoRepository"/>
|
|
|
63
|
+ <property name="locationRepository" ref="locationRepository"/>
|
|
|
64
|
+ <property name="voyageRepository" ref="voyageRepository"/>
|
|
|
65
|
+ </bean>
|
|
|
66
|
+
|
|
50
|
67
|
<bean id="rmiBookingServiceFacade" class="org.springframework.remoting.rmi.RmiServiceExporter">
|
|
51
|
68
|
<property name="serviceInterface" value="se.citerus.dddsample.interfaces.booking.facade.BookingServiceFacade"/>
|
|
52
|
69
|
<property name="service" ref="bookingServiceFacade"/>
|