Announcement Announcement Module
No announcement yet.
RequestContextHolder thread local Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • RequestContextHolder thread local

    Hi, I am trying to make use of RequestContextHolder class for obtaining the HttpServletRequest. Is it thread safe for multi thread application and Async communications? The scenario is like, I cannot be able to send the HttpServletRequest object as a method parameter to a Spring initialized bean and I am trying to make use of the RequestContextHolder class to obtain the request object. Please let me know if this solution will work fine or not for the above use case. Also when the resetRequestAttributes method will be called on this class by Spring API?