Hi
I have a project that consists of EJB3, JSF and now Spring. I use to access the EJBs from the JSF beans using the @EJB annotation for injection. Since I introduced Spring into the mix to manage the JSF beans I get the following exception:
Am I supposed to configure something to allow the normal use of @EJB or will Spring be a bit invasive and not allow normal use in this case?Code:org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [MyEJBInterface] is defined: Unsatisfied dependency of type [MyEJBInterface]: expected at least 1 matching bean at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:613) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:431) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:409) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$EjbRefElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:684) at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:180) at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation(CommonAnnotationBeanPostProcessor.java:289) ... 116 more
Thanks in advance.


Reply With Quote