Juergen Hoeller opened SPR-15154 and commented
The BeanFactoryLocator facility and its beanRefContext.xml-based default variant are outdated mechanisms for locating a statically shared ApplicationContext, only really useful for old-school EAR deployment layouts prior to EJB 3.1. While it still makes sense for this to be available in the 4.3.x line with its EJB 3.0 support, let's get rid of the entire mechanism for Spring 5 with its EE 7 baseline.
This means that existing users of SpringBeanAutowiringInterceptor on custom EJB classes need to migrate either away from EJB altogether, or to an EJB 3.1 + CDI layer with a CDI-Spring bridge, or to a custom interceptor variant which locates the Spring ApplicationContext from an application-specific holder, e.g. an EJB 3.1 Singleton Bean or a simple static variable in an application class.
Issue Links:
Juergen Hoeller opened SPR-15154 and commented
The
BeanFactoryLocatorfacility and itsbeanRefContext.xml-based default variant are outdated mechanisms for locating a statically sharedApplicationContext, only really useful for old-school EAR deployment layouts prior to EJB 3.1. While it still makes sense for this to be available in the 4.3.x line with its EJB 3.0 support, let's get rid of the entire mechanism for Spring 5 with its EE 7 baseline.This means that existing users of
SpringBeanAutowiringInterceptoron custom EJB classes need to migrate either away from EJB altogether, or to an EJB 3.1 + CDI layer with a CDI-Spring bridge, or to a custom interceptor variant which locates the SpringApplicationContextfrom an application-specific holder, e.g. an EJB 3.1 Singleton Bean or a simple static variable in an application class.Issue Links: