-
Notifications
You must be signed in to change notification settings - Fork 1
/
beans.xml
73 lines (64 loc) · 3.07 KB
/
beans.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:oxm="http://www.springframework.org/schema/oxm" xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/oxm
http://www.springframework.org/schema/oxm/spring-oxm.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd">
<bean id="schedulingController" class="org.appng.application.scheduler.business.SchedulingController">
<property name="scheduler" ref="scheduler" />
</bean>
<bean id="scheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="schedulerName">
<value>Scheduler_${site.name}</value>
</property>
<property name="autoStartup" value="false" />
<property name="jobFactory">
<bean class="org.appng.application.scheduler.TestJobFactory" />
</property>
<property name="quartzProperties">
<props>
<prop key="org.quartz.scheduler.instanceName">Scheduler_${site.name}</prop>
<prop key="org.quartz.scheduler.threadName">Scheduler_${site.name}</prop>
<prop key="org.quartz.threadPool.threadCount">3</prop>
<prop key="org.quartz.scheduler.skipUpdateCheck">true</prop>
<prop key="org.quartz.jobStore.class">org.quartz.simpl.RAMJobStore</prop>
</props>
</property>
</bean>
<bean id="jobs" class="org.appng.application.scheduler.business.SchedulerDataSource">
<property name="scheduler" ref="scheduler" />
</bean>
<bean id="updateJob" class="org.appng.application.scheduler.business.UpdateSchedulerAction">
<property name="scheduler" ref="scheduler" />
</bean>
<bean id="createJob" class="org.appng.application.scheduler.business.CreateSchedulerAction">
<property name="scheduler" ref="scheduler" />
</bean>
<bean id="setJobState" class="org.appng.application.scheduler.business.SetSchedulerStateAction">
<property name="scheduler" ref="scheduler" />
</bean>
<bean id="indexJob" class="org.appng.application.scheduler.job.IndexJob">
<property name="description" value="Search job" />
<property name="jobDataMap">
<map>
<entry key="enabled" value="${indexEnabled}" />
<entry key="cronExpression" value="${indexExpression}" />
</map>
</property>
</bean>
<!-- this is needed to support the dictionary view of appng-manager -->
<util:list id="messageSources">
<value>messages-scheduler</value>
<value>messages-core</value>
</util:list>
</beans>