1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
3
|
xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
4
|
xmlns:context="http://www.springframework.org/schema/context" xmlns:p="http://www.springframework.org/schema/p"
|
5
|
xmlns:util="http://www.springframework.org/schema/util" xmlns:template="http://dnetlib.eu/springbeans/template"
|
6
|
xmlns:t="http://dnetlib.eu/springbeans/t"
|
7
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
8
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
|
9
|
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
|
10
|
http://dnetlib.eu/springbeans/template http://dnetlib.eu/springbeans/template.xsd
|
11
|
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
|
12
|
|
13
|
<!-- beans -->
|
14
|
|
15
|
<bean id="hcmService"
|
16
|
class="eu.dnetlib.enabling.hcm.HostingContextManagerServiceImpl"
|
17
|
init-method="start" destroy-method="stop"
|
18
|
p:notificationHandler-ref="hcmNotificationHandler"/>
|
19
|
|
20
|
<bean id="hcmNotificationHandler" class="eu.dnetlib.enabling.tools.blackboard.NotificationHandlerChainImpl"
|
21
|
p:handlers-ref="dynamicSubscriptionActions">
|
22
|
<property name="handlerExecutor">
|
23
|
<bean class="org.springframework.core.task.SyncTaskExecutor" />
|
24
|
</property>
|
25
|
</bean>
|
26
|
|
27
|
<bean id="dynamicSubscriptionActions"
|
28
|
class="eu.dnetlib.enabling.hcm.sn.HCMSubscriptionListFactory" />
|
29
|
|
30
|
<bean id="hcmSubscriber" class="eu.dnetlib.enabling.hcm.sn.HCMSubscriberImpl"
|
31
|
p:endpoint-ref="hcmServiceEndpoint" p:serviceLocator-ref="uniqueServiceLocator"
|
32
|
p:actions-ref="dynamicSubscriptionActions" />
|
33
|
|
34
|
<bean t:id="hcmJobSchedulerAccessor"
|
35
|
class="org.springframework.scheduling.quartz.SchedulerAccessorBean"
|
36
|
p:scheduler-ref="jobScheduler">
|
37
|
<property name="triggers">
|
38
|
<list>
|
39
|
<bean id="hcmSubscriptionTrigger"
|
40
|
class="org.springframework.scheduling.quartz.SimpleTriggerFactoryBean"
|
41
|
p:startDelay="6000" p:repeatCount="0">
|
42
|
<property name="jobDetail">
|
43
|
<bean id="hcmSubscriptionJobDetails"
|
44
|
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"
|
45
|
p:targetObject-ref="hcmSubscriber" p:targetMethod="subscribeAll" />
|
46
|
</property>
|
47
|
</bean>
|
48
|
</list>
|
49
|
</property>
|
50
|
</bean>
|
51
|
|
52
|
<!-- endpoints -->
|
53
|
<jaxws:endpoint id="hcmServiceEndpoint" implementor="#hcmService"
|
54
|
implementorClass="eu.dnetlib.enabling.hcm.rmi.HostingContextManagerService"
|
55
|
address="/hcm" />
|
56
|
|
57
|
<template:instance name="serviceRegistrationManager"
|
58
|
t:serviceRegistrationManagerClass="eu.dnetlib.enabling.tools.registration.ValidatingServiceRegistrationManagerImpl"
|
59
|
t:name="hcmServiceRegistrationManager" t:service="hcmService"
|
60
|
t:endpoint="hcmServiceEndpoint" t:jobScheduler="jobScheduler" />
|
61
|
</beans>
|