Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0
-
None
-
None
Description
Please update JCAContainer to use ListableBeanFactory.getBeanNamesForType(Class) rather than blindly trying to instantiate every single bean in the context.
[junit] Error creating bean with name 'abstractInboxCommand': Bean definition is abstract
[junit] org.springframework.beans.factory.BeanIsAbstractException: Error creating bean with name
'abstractInboxCommand': Bean definition is abstract
[junit] at org.springframework.beans.factory.support.AbstractBeanFactory.checkMergedBeanDefinition(AbstractBeanFactory.java:653)
[junit] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
[junit] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
[junit] at org.codehaus.activemq.jca.JCAContainer.afterPropertiesSet(JCAContainer.java:77)
[junit] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1065)
[junit] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:343)
[junit] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260)
Attachments
Issue Links
- duplicates
-
AMQ-206 JCAContainer fails to check if beans are abstract before calling beanFactory.getBean()
-
- Resolved
-