@ -993,7 +993,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
@@ -993,7 +993,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
@ -104,6 +111,8 @@ public class ScheduledAnnotationBeanPostProcessor implements DestructionAwareBea
@@ -104,6 +111,8 @@ public class ScheduledAnnotationBeanPostProcessor implements DestructionAwareBea
privateStringValueResolverembeddedValueResolver;
privateStringbeanName;
privateBeanFactorybeanFactory;
privateApplicationContextapplicationContext;
@ -142,6 +151,11 @@ public class ScheduledAnnotationBeanPostProcessor implements DestructionAwareBea
@@ -142,6 +151,11 @@ public class ScheduledAnnotationBeanPostProcessor implements DestructionAwareBea
@ -201,12 +215,11 @@ public class ScheduledAnnotationBeanPostProcessor implements DestructionAwareBea
@@ -201,12 +215,11 @@ public class ScheduledAnnotationBeanPostProcessor implements DestructionAwareBea
Assert.state(this.beanFactory!=null,"BeanFactory must be set to find scheduler by type");
@ -222,12 +235,11 @@ public class ScheduledAnnotationBeanPostProcessor implements DestructionAwareBea
@@ -222,12 +235,11 @@ public class ScheduledAnnotationBeanPostProcessor implements DestructionAwareBea
logger.debug("Could not find default TaskScheduler bean",ex);
// Search for ScheduledExecutorService bean next...
@ -250,6 +262,32 @@ public class ScheduledAnnotationBeanPostProcessor implements DestructionAwareBea
@@ -250,6 +262,32 @@ public class ScheduledAnnotationBeanPostProcessor implements DestructionAwareBea
@ -76,11 +80,11 @@ public class ScheduledAndTransactionalAnnotationIntegrationTests {
@@ -76,11 +80,11 @@ public class ScheduledAndTransactionalAnnotationIntegrationTests {
assertThat("repository is not a proxy",AopUtils.isAopProxy(repository),equalTo(true));
assertThat("repository is not a proxy",AopUtils.isCglibProxy(repository),equalTo(true));
assertThat("@Scheduled method never called",repository.getInvocationCount(),greaterThan(0));
assertThat("no transactions were committed",txManager.commits,greaterThan(0));
}
@ -91,15 +95,28 @@ public class ScheduledAndTransactionalAnnotationIntegrationTests {
@@ -91,15 +95,28 @@ public class ScheduledAndTransactionalAnnotationIntegrationTests {
assertThat("repository is not a proxy",AopUtils.isCglibProxy(repository),is(true));
assertThat("@Scheduled method never called",repository.getInvocationCount(),greaterThan(0));
}
@Configuration
@EnableTransactionManagement
@ -108,7 +125,7 @@ public class ScheduledAndTransactionalAnnotationIntegrationTests {
@@ -108,7 +125,7 @@ public class ScheduledAndTransactionalAnnotationIntegrationTests {
@ -137,19 +154,49 @@ public class ScheduledAndTransactionalAnnotationIntegrationTests {
@@ -137,19 +154,49 @@ public class ScheduledAndTransactionalAnnotationIntegrationTests {
@ -191,6 +238,9 @@ public class ScheduledAndTransactionalAnnotationIntegrationTests {
@@ -191,6 +238,9 @@ public class ScheduledAndTransactionalAnnotationIntegrationTests {
@ -200,6 +250,9 @@ public class ScheduledAndTransactionalAnnotationIntegrationTests {
@@ -200,6 +250,9 @@ public class ScheduledAndTransactionalAnnotationIntegrationTests {