Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7246

PhaseInterceptorChain's Message is not passed to child threads.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Do
    • 2.6.14
    • Invalid
    • JAX-RS
    • None
    • Unknown

    Description

      Hello,

      We put few information(usually request header information) in Message through RequestHandler by doing PhaseInterceptorChain.getCurrentMessage.getExchange.put("","");

      But when we create a new Threads from the thread which brings in request to the controller, those objects which are put in the Exchange are not available to new threads. The PhaseInterceptorChain has Message object which is ThreadLocal so the objects are not available to subsequent threads which are created, so exploiting parallelism is quite painful once we store something in Exchange object.

      As a suggestion can we have Message object as optional between ThreadLocal and InheritableThreadLocal and via a configuration we can set that do we need to make available Message object to child threads.

      Thanks,
      Dhawal Patel

      Attachments

        Activity

          People

            Unassigned Unassigned
            dhawalschumi Dhawal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: