Description
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:
- Drop NativeJdbcExtractor mechanism in favor of java.sql.Connection.unwrap() [SPR-14670] #19234 Drop NativeJdbcExtractor mechanism in favor of java.sql.Connection.unwrap()
- Remove outdated abstractions/delegates from org.springframework.core/util [SPR-15159] #19725 Remove outdated abstractions/delegates from org.springframework.core/util