EJB3 SpringBeanAutowiringInterceptor and SessionContext, No unique bean defined
I've got a stateless session bean. Spring injection is working fine for spring beans using org.springframework.ejb.interceptor.SpringBeanAuto wiringInterceptor
However, if I add the following which works fine in another stateless session bean that does have any spring injections:
@Resource SessionContext ctx;
I get the following:
org.springframework.beans.factory.NoSuchBeanDefini tionException: No unique bean of type [javax.ejb.SessionContext] is defined: Unsatisfied dependency of type [interface javax.ejb.SessionContext]: expected at least 1 matching bean
It looks like spring is trying to inject a resource that should be injected by the ejb container.
Is this a bug or do I not have something configured correctly.