Skip to content

Drop outdated BeanFactoryLocator / beanRefContext.xml mechanism [SPR-15154] #19720

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions