Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@EnableScheduling javadoc has incomplete XML example [SPR-14145] #18717

Closed
spring-issuemaster opened this issue Apr 11, 2016 · 0 comments
Closed

@EnableScheduling javadoc has incomplete XML example [SPR-14145] #18717

spring-issuemaster opened this issue Apr 11, 2016 · 0 comments

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Apr 11, 2016

Manuel Jordan opened SPR-14145 and commented

On

Annotation Type EnableScheduling javadoc/api

Currently it contains:

<beans>
    <task:annotation-driven scheduler="taskScheduler"/>
    <task:scheduler id="taskScheduler" pool-size="42"/>
    <task:scheduled ref="myTask" method="work" fixed-rate="1000"/>
    <bean id="myTask" class="com.foo.MyTask"/>
</beans>

Must be

<beans>
    <task:annotation-driven scheduler="taskScheduler"/>
    <task:scheduler id="taskScheduler" pool-size="42"/>
    <task:scheduled-tasks scheduler="scheduler" >
             <task:scheduled ref="myTask" method="work" fixed-rate="1000"/>
    </task:scheduled-tasks>	
    <bean id="myTask" class="com.foo.MyTask"/>
</beans>

In XML the task:scheduled component must be inside of task:scheduled-tasks


Affects: 3.2.16, 4.2.3

Backported to: 3.2.17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.