Skip to content

Instantly share code, notes, and snippets.

@rei999
Created November 4, 2013 22:43
Show Gist options
  • Save rei999/7310521 to your computer and use it in GitHub Desktop.
Save rei999/7310521 to your computer and use it in GitHub Desktop.
Enable task annotation
<?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:context="http://www.springframework.org/schema/context"
xmlns:task="http://www.springframework.org/schema/task"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd"
default-lazy-init="true">
<!-- async support -->
<task:annotation-driven executor="myExecutorService" scheduler="mySchedulerService" />
<task:executor id="myExecutorService" pool-size="5-10" queue-capacity="10" />
<task:scheduler id="mySchedulerService" pool-size="10" />
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment