Skip to content

Undertow - Session context lifecycle events should be observable from session scoped beans #46363

@manovotn

Description

@manovotn

@Initialized and @BeforeDestroyed events for session context should be observable by @SessionScoped beans.
Attempting this at the moment leads to a stack overflow because:

  • During observer notification our proxies check if given session context isActive()
  • In current context impl, this always triggers creation of a new session
  • This in turn notifies HttpSessionListener#sessionCreated where we fire new @Initialized event and again try to notify observers

Issue can be reproducer by changing SessionContextTestCase and adding given observer bean.

Metadata

Metadata

Assignees

Labels

area/arcIssue related to ARC (dependency injection)area/undertow

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions