Skip to content

ApplicationEventPublisher - PayloadApplicationEvent not received by EventListener if event fired from child context #30360

Closed
@robtha

Description

@robtha

If PayloadApplicationEvent is published via ApplicationEventPublisher from child context, it will not be received by EventListeners in the parent context. This worked in Spring 5.x

Tested with spring versions: 6.0.7, 6.0.8

I have attached a sample application to reproduce the problem.

PayloadApplicationEventS are only received by the EventListener in the child context but not in parent context.
Subclasses of ApplicationEvent are not affected and still received by the listener in the parent context.

kind regards
Robert

sample.zip

Metadata

Metadata

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions