Skip to content

Add completion callbacks (regardless of failure) to ChannelInterceptor [SPR-11967] #16583

Closed
@spring-projects-issues

Description

@spring-projects-issues

Rob Winch opened SPR-11967 and commented

A ChannelInterceptor may need to be invoked in all cases, even failure, after the message is sent for example to clear thread local context.

The specific use case is for Spring Security to be able to set up the SecurityContextHolder in preSend and then clear it regardless of whether the send succeeded or failed.


Affects: 4.0.5

This issue is a sub-task of #16582

Issue Links:

  • SEC-2672 ChannelInterceptorAdapter not reliable to clear SecurityContextHolder ("is depended on by")
  • INT-2166 Adding support for SecurityContext Propagation

Metadata

Metadata

Assignees

Labels

in: messagingIssues in messaging modules (jms, messaging)type: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions