@ -983,7 +983,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
@@ -983,7 +983,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;
@ -140,6 +149,11 @@ public class ScheduledAnnotationBeanPostProcessor implements DestructionAwareBea
@@ -140,6 +149,11 @@ public class ScheduledAnnotationBeanPostProcessor implements DestructionAwareBea
@ -199,12 +213,11 @@ public class ScheduledAnnotationBeanPostProcessor implements DestructionAwareBea
@@ -199,12 +213,11 @@ public class ScheduledAnnotationBeanPostProcessor implements DestructionAwareBea
Assert.state(this.beanFactory!=null,"BeanFactory must be set to find scheduler by type");
@ -220,12 +233,11 @@ public class ScheduledAnnotationBeanPostProcessor implements DestructionAwareBea
@@ -220,12 +233,11 @@ public class ScheduledAnnotationBeanPostProcessor implements DestructionAwareBea
logger.debug("Could not find default TaskScheduler bean",ex);
// Search for ScheduledExecutorService bean next...
@ -248,6 +260,32 @@ public class ScheduledAnnotationBeanPostProcessor implements DestructionAwareBea
@@ -248,6 +260,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 {