MessageBus now registers endpoints and source adapters (and starts if its autoStartup property is set to "true") after receiving a ContextRefreshedEvent rather than the excessively eager start during the 'setApplicationContext' callback (INT-196).

This commit is contained in:
Mark Fisher
2008-04-22 16:56:27 +00:00
parent c9cdff0aee
commit 3d63406053
2 changed files with 17 additions and 7 deletions

View File

@@ -27,6 +27,7 @@ import org.junit.Test;
import org.springframework.beans.factory.BeanCreationException;
import org.springframework.beans.factory.BeanDefinitionStoreException;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.integration.adapter.PollingSourceAdapter;
import org.springframework.integration.adapter.jms.JmsMessageDrivenSourceAdapter;
@@ -140,7 +141,7 @@ public class JmsSourceAdapterParserTests {
new ClassPathXmlApplicationContext("pollingAdapterWithDestinationOnly.xml", this.getClass());
}
catch (RuntimeException e) {
assertEquals(BeanCreationException.class, e.getCause().getClass());
assertEquals(NoSuchBeanDefinitionException.class, e.getCause().getClass());
throw e;
}
}