Issue Details (XML | Word | Printable)

Key: SPR-4535
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Juergen Hoeller
Reporter: Kenny MacLeod
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Spring Framework

Allow specification of inheritable flag in RequestContextFilter/Listener

Created: 04/Mar/08 09:17 AM   Updated: 15/Mar/08 06:11 PM
Component/s: SpringWEB
Affects Version/s: 2.5.2
Fix Version/s: 2.5.3

Time Tracking:
Not Specified


 Description  « Hide
When RequestContextFilter or RequestContextListener call RequestContextHolder.setRequestAttributes(), they don't specify the inheritable flag, and so that defaults to false.

I'd like to be able to configure the filter or listener to specify the value of this flag.

 All   Comments   Work Log   Change History   FishEye   Builds      Sort Order: Ascending order - Click to sort in descending order
Juergen Hoeller added a comment - 15/Mar/08 06:11 PM
I've added a "threadContextInheritable" init-param to RequestContextFilter (analogous to DispatcherServlet). Since Servlet request listeners do not have a specific init-param facility, I've left things as-is there. You'll have to use the filter when you intend to change the "threadContextInheritable" setting.

Juergen