You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ScheduledAnnotationBeanPostProcessor should fall back to default TaskScheduler by name [SPR-13236] #17827
Spring Integration creates a bean of type TaskScheduler but only if it doesn't find one using a sensible search strategy. The strategy in ScheduledAnnotationBeanPostProcessor is different and not as sensible IMO (it has no fallback to a well-known bean name if there are multiple instances). This can be surprising for users.
It's not too hard to fall back to a bean named "taskScheduler" in ScheduledAnnotationBeanPostProcessor, so we're doing that as of 4.2 GA now. Give it an early try please...
Note that marking the desired scheduler bean as primary is usually a fine solution to the problem, at least when the user has influence on the affected bean definitions.
Activity
spring-projects-issues commentedon Jul 17, 2015
Juergen Hoeller commented
It's not too hard to fall back to a bean named "taskScheduler" in
ScheduledAnnotationBeanPostProcessor, so we're doing that as of 4.2 GA now. Give it an early try please...Note that marking the desired scheduler bean as
primaryis usually a fine solution to the problem, at least when the user has influence on the affected bean definitions.Juergen
spring-projects-issues commentedon Jul 17, 2015
Dave Syer commented
That seems to work nicely, thanks.