~dhis2-devs-core/+junk/dhis2-xml-ng

« back to all changes in this revision

Viewing changes to dhis-2/dhis-services/dhis-service-task/src/main/resources/META-INF/dhis/beans.xml

  • Committer: Jo Størset
  • Date: 2010-01-22 10:57:28 UTC
  • Revision ID: storset@gmail.com-20100122105728-3hi51slq3vqu4qr4
Checking in for review (comments welcome).

Basically using task manager for import tasks, trying to show better progress info to the user. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
    <!-- Configure thread pool for task executor-->
12
12
    <bean id="threadPoolTaskExecutor" class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor">
13
 
        <property name="corePoolSize" value="5" />
14
 
        <property name="maxPoolSize" value="45" />
15
 
        <property name="queueCapacity" value="25" />
 
13
        <property name="corePoolSize" value="3" />
 
14
        <property name="maxPoolSize" value="10" />
 
15
        <property name="queueCapacity" value="5" />
16
16
    </bean>
17
17
 
18
18
    <!-- Configure simple thread per task for task executor-->
19
 
    <bean id="simpleAsyncTaskExecutor" class="org.springframework.core.task.SimpleAsyncTaskExecutor">
20
 
    </bean>
21
 
 
22
 
    <!-- Configure simple task executor which executes in calling thread (BEWARE) -->
23
 
    <bean id="syncTaskExecutor" class="org.springframework.core.task.SyncTaskExecutor">
24
 
    </bean>
 
19
    <bean id="simpleAsyncTaskExecutor" class="org.springframework.core.task.SimpleAsyncTaskExecutor" />
25
20
 
26
21
    <!-- Configure TaskManager with a choice of concurrency strategies -->
27
22
    <bean id="org.hisp.dhis.task.TaskManager" class="org.hisp.dhis.task.TaskManagerImpl">